discovery

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package discovery resolves trusted Wirecmd configuration sources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

func List() ([]string, error)

List returns canonical trusted workspace roots in deterministic order.

func Paths

func Paths(cwd string) ([]string, error)

Paths returns configuration paths from weakest to strongest for cwd.

func Status

func Status(path string) (string, bool, string, error)

Status returns the canonical path, whether it is covered, and the nearest trusted root.

func Trust

func Trust(path string) (string, error)

Trust adds path to the trusted workspace roots and returns its canonical form.

func Untrust

func Untrust(path string) (string, error)

Untrust removes path from the trusted workspace roots and returns its canonical form.

Types

type NotFoundError

type NotFoundError struct{}

NotFoundError reports that neither global nor workspace configuration exists.

func (*NotFoundError) Error

func (*NotFoundError) Error() string

type UntrustedError

type UntrustedError struct{ Workspace string }

UntrustedError reports the nearest workspace configuration that requires trust.

func (*UntrustedError) Error

func (e *UntrustedError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL