Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddInstallCmd ¶
func AddInstallSkillsCmd ¶
Types ¶
type InstallCmd ¶
type InstallCmd struct {
// contains filtered or unexported fields
}
type InstallSkillsCmd ¶
type InstallSkillsCmd struct {
Opts InstallSkillsOptions
// contains filtered or unexported fields
}
func (*InstallSkillsCmd) InstallSkills ¶
func (c *InstallSkillsCmd) InstallSkills(cliVersion string) error
InstallSkills installs or updates every skill bundled with this binary into the configured target directory, treating cliVersion as "the version of this cs CLI build" for the up-to-date comparison against each skill's installed version.json. It takes cliVersion explicitly (rather than always calling cs.Version() itself) so it's deterministically testable.
type InstallSkillsOptions ¶
type InstallSkillsOptions struct {
// Dir is the target skills directory. Empty means the default: ".agents/skills"
// in the current directory, or in the user's home directory if Global is set.
Dir string
Global bool
Force bool
DryRun bool
}
InstallSkillsOptions holds the flags of `cs install skills`. Exported (rather than plain unexported fields) so tests can drive InstallSkillsCmd directly without going through cobra flag parsing.
Click to show internal directories.
Click to hide internal directories.