skillrepos

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureCloned

func EnsureCloned(ctx context.Context, destDir string, repos []Repo) []string

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

func ParseRepos(csv string) []Repo

ParseRepos parses a comma-separated list of git URLs into Repos.

func RepoFromURL

func RepoFromURL(url string) Repo

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").

Jump to

Keyboard shortcuts

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