cli

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 25 Imported by: 0

Documentation

Overview

Package cli implements the staghorn command-line interface.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is set at build time.
	Version = "dev"
)

Functions

func Execute

func Execute() error

Execute runs the CLI.

func NewCommandInfoCmd added in v0.2.0

func NewCommandInfoCmd() *cobra.Command

NewCommandInfoCmd creates the 'command info' command.

func NewCommandsCmd added in v0.2.0

func NewCommandsCmd() *cobra.Command

NewCommandsCmd creates the commands command.

func NewCommandsInitCmd added in v0.2.0

func NewCommandsInitCmd() *cobra.Command

NewCommandsInitCmd creates the 'commands init' command to bootstrap starter commands.

func NewEditCmd

func NewEditCmd() *cobra.Command

NewEditCmd creates the edit command.

func NewEvalCmd added in v0.4.0

func NewEvalCmd() *cobra.Command

NewEvalCmd creates the eval command.

func NewEvalCreateCmd added in v0.5.0

func NewEvalCreateCmd() *cobra.Command

NewEvalCreateCmd creates the 'eval create' command.

func NewEvalInfoCmd added in v0.4.0

func NewEvalInfoCmd() *cobra.Command

NewEvalInfoCmd creates the 'eval info' command.

func NewEvalInitCmd added in v0.4.0

func NewEvalInitCmd() *cobra.Command

NewEvalInitCmd creates the 'eval init' command.

func NewEvalListCmd added in v0.4.0

func NewEvalListCmd() *cobra.Command

NewEvalListCmd creates the 'eval list' command.

func NewEvalValidateCmd added in v0.5.0

func NewEvalValidateCmd() *cobra.Command

NewEvalValidateCmd creates the 'eval validate' command.

func NewInfoCmd

func NewInfoCmd() *cobra.Command

NewInfoCmd creates the info command.

func NewInitCmd

func NewInitCmd() *cobra.Command

NewInitCmd creates the init command.

func NewLanguagesCmd

func NewLanguagesCmd() *cobra.Command

NewLanguagesCmd creates the languages command.

func NewLanguagesInitCmd added in v0.2.0

func NewLanguagesInitCmd() *cobra.Command

NewLanguagesInitCmd creates the 'languages init' command to bootstrap starter language configs.

func NewOptimizeCmd added in v0.6.0

func NewOptimizeCmd() *cobra.Command

NewOptimizeCmd creates the optimize command.

func NewProjectCmd

func NewProjectCmd() *cobra.Command

NewProjectCmd creates the project parent command.

func NewProjectEditCmd

func NewProjectEditCmd() *cobra.Command

NewProjectEditCmd creates the 'project edit' command.

func NewProjectInfoCmd

func NewProjectInfoCmd() *cobra.Command

NewProjectInfoCmd creates the 'project info' command.

func NewProjectInitCmd

func NewProjectInitCmd() *cobra.Command

NewProjectInitCmd creates the 'project init' command.

func NewProjectTemplatesCmd

func NewProjectTemplatesCmd() *cobra.Command

NewProjectTemplatesCmd creates the 'project templates' command.

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd creates the root command.

func NewRunCmd

func NewRunCmd() *cobra.Command

NewRunCmd creates the run command.

func NewSearchCmd added in v0.3.0

func NewSearchCmd() *cobra.Command

NewSearchCmd creates the search command.

func NewSkillsCmd added in v0.8.0

func NewSkillsCmd() *cobra.Command

NewSkillsCmd creates the skills command.

func NewSkillsInitCmd added in v0.8.0

func NewSkillsInitCmd() *cobra.Command

NewSkillsInitCmd creates the 'skills init' command to bootstrap starter skills.

func NewSyncCmd

func NewSyncCmd() *cobra.Command

NewSyncCmd creates the sync command.

func NewTeamCmd added in v0.2.0

func NewTeamCmd() *cobra.Command

NewTeamCmd creates the team command group.

func NewTeamInitCmd added in v0.2.0

func NewTeamInitCmd() *cobra.Command

NewTeamInitCmd creates the team init command.

func NewTeamValidateCmd added in v0.2.0

func NewTeamValidateCmd() *cobra.Command

NewTeamValidateCmd creates the team validate command.

func NewVersionCmd

func NewVersionCmd() *cobra.Command

NewVersionCmd creates the version 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).

Jump to

Keyboard shortcuts

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