install

package
v1.40.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddInstallCmd

func AddInstallCmd(rootCmd *cobra.Command)

func AddInstallSkillsCmd

func AddInstallSkillsCmd(parent *cobra.Command)

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.

func (*InstallSkillsCmd) RunE

func (c *InstallSkillsCmd) RunE(_ *cobra.Command, _ []string) error

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.

Jump to

Keyboard shortcuts

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