install

package
v1.56.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 15 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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