Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureCloned ¶
EnsureCloned clones repos that do not yet exist and pulls those that do, throttled to at most once per pullCooldown to avoid redundant network calls. Each repo is placed at destDir/<repo.Name>/. Errors are logged but not fatal — a partially updated repo is still useful.
Types ¶
type Repo ¶
type Repo struct {
// URL is the git clone URL.
URL string
// Name is the local directory name under the dest root (derived from URL if empty).
Name string
}
Repo describes a remote git repository that contains skills.
func ParseRepos ¶
ParseRepos parses a comma-separated list of git URLs into Repos.
func RepoFromURL ¶
RepoFromURL creates a Repo from a raw git URL, deriving the name from the last path segment (e.g. "https://github.com/foo/paperasse" → name "paperasse").
Click to show internal directories.
Click to hide internal directories.