cli

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: MIT Imports: 20 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 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 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 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