Documentation
¶
Overview ¶
Package cli provides command-line interface implementations for skills-pkg.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddCmd ¶
type AddCmd struct {
Name string `arg:"" help:"Skill name"`
Source string `default:"git" enum:"git,go-mod" help:"Source type"`
URL string `required:"" help:"Source URL (Git URL or Go module path)"`
Version string `` /* 130-byte string literal not displayed */
SubDir string `help:"Subdirectory within the source to extract (default: skills/{name})"`
PrintSkillInfo bool `name:"print-skill-info" help:"After installation, print skill metadata in agent-readable format"`
}
AddCmd represents the add command
type AddInstallTargetCmd ¶
type AddInstallTargetCmd struct {
Target []string `arg:"" optional:"" help:"Install target directory path (can be specified multiple times)"`
Agent []string `` /* 155-byte string literal not displayed */
Global bool `help:"Use user-level directory instead of project-level directory (requires --agent)" short:"g" default:"false"`
}
AddInstallTargetCmd represents the add-install-target command
type InitCmd ¶
type InitCmd struct {
Agent []string `` /* 447-byte string literal not displayed */
InstallDir []string `help:"Custom install directory (can be specified multiple times)" short:"d"`
Global bool `help:"Use user-level directory instead of project-level directory (requires --agent)" short:"g" default:"false"`
}
InitCmd represents the init command Requirements: 1.1, 1.2, 1.3, 1.4, 1.5, 12.1, 12.2, 12.3, 12.4
func (*InitCmd) Run ¶
Run executes the init command This method initializes a new .skillspkg.toml configuration file with the specified install directories. It handles custom install directories (--install-dir) and agent-specific directories (--agent). Requirements: 1.1, 1.2, 1.3, 1.4, 1.5, 12.1, 12.2, 12.3, 12.4
type InstallCmd ¶
type InstallCmd struct {
Skills []string `arg:"" optional:"" help:"Skill names to install (if not specified, installs all skills from configuration)"`
}
InstallCmd represents the install command
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger provides logging functionality with verbose support
func (*Logger) SetVerbose ¶
SetVerbose enables or disables verbose logging
type SearchCmd ¶
type SearchCmd struct {
Query string `arg:"" optional:"" help:"Search query for skills"`
Limit int `default:"10" help:"Maximum number of results to show"`
}
SearchCmd searches for available skills on skills.sh.
type SetupCICmd ¶
type SetupCICmd struct {
GitHubActions bool `help:"Generate GitHub Actions workflow for skills auto-update" name:"github-actions"`
Renovate bool `help:"Add Renovate custom manager configuration for skills auto-update" name:"renovate"`
}
SetupCICmd represents the setup-ci command
type UninstallCmd ¶
type UninstallCmd struct {
SkillName string `arg:"" help:"Name of the skill to remove from configuration and all install targets"`
}
UninstallCmd represents the uninstall command
type UpdateCmd ¶
type UpdateCmd struct {
Output string `help:"Output format (text, json)" default:"text" enum:"text,json"`
Skills []string `arg:"" optional:"" help:"Skill names to update (if not specified, updates all skills to their latest versions)"`
DryRun bool `help:"Show what would be updated without making changes" name:"dry-run"`
}
UpdateCmd represents the update command