discovery

package
v0.0.0-...-2ec3a6f Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(a, b []Repo) bool

Equal compares two repo slices by name + path. Order matters; both lists are expected to be sorted (Discover sorts alphabetically).

func SaveCached

func SaveCached(repos []Repo) error

SaveCached persists the repo list atomically.

Types

type Repo

type Repo struct {
	Name string
	Path string
}

func Discover

func Discover(cfg *config.Config) ([]Repo, error)

func LoadCached

func LoadCached() ([]Repo, error)

LoadCached returns the previously-saved repo list, or nil + an error if none is available.

Jump to

Keyboard shortcuts

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