Documentation
¶
Overview ¶
Package cli implements the staghorn command-line interface.
Index ¶
- Variables
- func Execute() error
- func NewCommandInfoCmd() *cobra.Command
- func NewCommandsCmd() *cobra.Command
- func NewCommandsInitCmd() *cobra.Command
- func NewEditCmd() *cobra.Command
- func NewEvalCmd() *cobra.Command
- func NewEvalCreateCmd() *cobra.Command
- func NewEvalInfoCmd() *cobra.Command
- func NewEvalInitCmd() *cobra.Command
- func NewEvalListCmd() *cobra.Command
- func NewEvalValidateCmd() *cobra.Command
- func NewInfoCmd() *cobra.Command
- func NewInitCmd() *cobra.Command
- func NewLanguagesCmd() *cobra.Command
- func NewLanguagesInitCmd() *cobra.Command
- func NewOptimizeCmd() *cobra.Command
- func NewProjectCmd() *cobra.Command
- func NewProjectEditCmd() *cobra.Command
- func NewProjectInfoCmd() *cobra.Command
- func NewProjectInitCmd() *cobra.Command
- func NewProjectTemplatesCmd() *cobra.Command
- func NewRootCmd() *cobra.Command
- func NewRunCmd() *cobra.Command
- func NewSearchCmd() *cobra.Command
- func NewSkillsCmd() *cobra.Command
- func NewSkillsInitCmd() *cobra.Command
- func NewSyncCmd() *cobra.Command
- func NewTeamCmd() *cobra.Command
- func NewTeamInitCmd() *cobra.Command
- func NewTeamValidateCmd() *cobra.Command
- func NewVersionCmd() *cobra.Command
- type StarterInstallResult
Constants ¶
This section is empty.
Variables ¶
var (
// Version is set at build time.
Version = "dev"
)
Functions ¶
func NewCommandInfoCmd ¶ added in v0.2.0
NewCommandInfoCmd creates the 'command info' command.
func NewCommandsCmd ¶ added in v0.2.0
NewCommandsCmd creates the commands command.
func NewCommandsInitCmd ¶ added in v0.2.0
NewCommandsInitCmd creates the 'commands init' command to bootstrap starter commands.
func NewEvalCmd ¶ added in v0.4.0
NewEvalCmd creates the eval command.
func NewEvalCreateCmd ¶ added in v0.5.0
NewEvalCreateCmd creates the 'eval create' command.
func NewEvalInfoCmd ¶ added in v0.4.0
NewEvalInfoCmd creates the 'eval info' command.
func NewEvalInitCmd ¶ added in v0.4.0
NewEvalInitCmd creates the 'eval init' command.
func NewEvalListCmd ¶ added in v0.4.0
NewEvalListCmd creates the 'eval list' command.
func NewEvalValidateCmd ¶ added in v0.5.0
NewEvalValidateCmd creates the 'eval validate' command.
func NewLanguagesCmd ¶
NewLanguagesCmd creates the languages command.
func NewLanguagesInitCmd ¶ added in v0.2.0
NewLanguagesInitCmd creates the 'languages init' command to bootstrap starter language configs.
func NewOptimizeCmd ¶ added in v0.6.0
NewOptimizeCmd creates the optimize command.
func NewProjectCmd ¶
NewProjectCmd creates the project parent command.
func NewProjectEditCmd ¶
NewProjectEditCmd creates the 'project edit' command.
func NewProjectInfoCmd ¶
NewProjectInfoCmd creates the 'project info' command.
func NewProjectInitCmd ¶
NewProjectInitCmd creates the 'project init' command.
func NewProjectTemplatesCmd ¶
NewProjectTemplatesCmd creates the 'project templates' command.
func NewSearchCmd ¶ added in v0.3.0
NewSearchCmd creates the search command.
func NewSkillsCmd ¶ added in v0.8.0
NewSkillsCmd creates the skills command.
func NewSkillsInitCmd ¶ added in v0.8.0
NewSkillsInitCmd creates the 'skills init' command to bootstrap starter skills.
func NewTeamCmd ¶ added in v0.2.0
NewTeamCmd creates the team command group.
func NewTeamInitCmd ¶ added in v0.2.0
NewTeamInitCmd creates the team init command.
func NewTeamValidateCmd ¶ added in v0.2.0
NewTeamValidateCmd creates the team validate command.
Types ¶
type StarterInstallResult ¶ added in v0.2.0
type StarterInstallResult struct {
Installed []string // Commands that were installed
Skipped []string // Commands skipped due to team collision
Existing int // Commands that already existed
Aborted bool // User chose to abort
}
StarterInstallResult contains the results of installing starter commands.
func InstallStarterCommands ¶ added in v0.2.0
func InstallStarterCommands(targetDir string, checkCollisions bool) (*StarterInstallResult, error)
InstallStarterCommands installs starter commands with collision detection. It prompts the user if there are collisions with team commands. Set checkCollisions=false to skip collision detection (e.g., for project installs).