discovery

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveRepoPartial added in v0.4.0

func ResolveRepoPartial(partial string) (string, error)

ResolveRepoPartial attempts to match a partial input against managed repos. Returns the matching repo slug ("owner/repo") if exactly one match found. Returns an error with suggestions if zero or multiple matches.

Types

type ManagedRepo

type ManagedRepo struct {
	Owner string
	Repo  string
	Path  string
	Meta  *meta.Meta
}

ManagedRepo represents a discovered managed repository.

func DiscoverManagedRepos

func DiscoverManagedRepos() ([]ManagedRepo, error)

DiscoverManagedRepos scans the gh-md root for all managed repositories. A repository is considered "managed" if it has a .gh-md-meta.yaml file.

func (*ManagedRepo) LastSyncTime

func (r *ManagedRepo) LastSyncTime() *time.Time

LastSyncTime returns the most recent sync timestamp across all item types.

func (*ManagedRepo) Slug

func (r *ManagedRepo) Slug() string

Slug returns "owner/repo" format.

Jump to

Keyboard shortcuts

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