commands

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRootCmd

func BuildRootCmd(ver string) *cobra.Command

BuildRootCmd builds and returns the root cobra command.

Types

type AddOptions

type AddOptions struct {
	Global            bool
	Project           bool
	Agents            []string // empty = prompt
	Skills            []string // empty = prompt; "*" = all
	PreselectedSkills []string // pre-ticked in the skill picker, but others still shown
	ListOnly          bool
	Yes               bool // skip prompts
	Copy              bool
	All               bool // --all: skill '*', agent '*', -y
	FullDepth         bool
	SkipAudit         bool
	FailOnAudit       bool
	AllowHiddenChars  bool
}

type AuditOptions

type AuditOptions struct {
	Global  bool
	Project bool
	JSON    bool
	Source  string // pre-install audit: owner/repo or URL
	Skill   string // filter by skill name (used with Source)
}

type DoctorOptions

type DoctorOptions struct {
	Global  bool
	Project bool
}

type FindSkillResult

type FindSkillResult struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	Source      string `json:"source"`
	Stars       int    `json:"stars,omitempty"`
	Owner       string `json:"owner,omitempty"`
	Repo        string `json:"repo,omitempty"`
}

type InstallMode

type InstallMode string
const (
	InstallModeSymlink InstallMode = "symlink"
	InstallModeCopy    InstallMode = "copy"
)

type InstallResult

type InstallResult struct {
	Success       bool
	Path          string
	CanonicalPath string
	Mode          InstallMode
	SymlinkFailed bool
	Error         string
}

type InstalledSkill

type InstalledSkill struct {
	Name          string
	Description   string
	License       string `json:"license,omitempty"`
	Compatibility string `json:"compatibility,omitempty"`
	Ref           string `json:"ref,omitempty"`
	Path          string
	CanonicalPath string
	Scope         string // "project" or "global"
	Agents        []string
}

type RemoveOptions

type RemoveOptions struct {
	Global bool
	Agents []string
	Skills []string
	Yes    bool
	All    bool
}

type SyncOptions

type SyncOptions struct {
	Yes              bool
	AllowHiddenChars bool
}

type UpdateOptions

type UpdateOptions struct {
	Global           bool
	Project          bool
	Yes              bool
	AllowHiddenChars bool
}

Jump to

Keyboard shortcuts

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