cli

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ExitSuccess indicates the operation completed successfully.
	ExitSuccess = 0

	// ExitError indicates a general error (invalid args, git failure, etc.).
	ExitError = 1

	// ExitConflict indicates a merge conflict was detected during update.
	ExitConflict = 2
)

Exit code constants for consistent process exit status.

Variables

This section is empty.

Functions

func NewAllowCmd added in v1.1.1

func NewAllowCmd() *cobra.Command

NewAllowCmd creates the allow subcommand that adds safe.directory entries for the root repository and all submodules that have dubious ownership errors.

func NewBackupCmd

func NewBackupCmd() *cobra.Command

NewBackupCmd creates the backup command with list and clean subcommands.

func NewCheckoutCmd added in v1.1.3

func NewCheckoutCmd() *cobra.Command

NewCheckoutCmd creates the checkout subcommand.

func NewClaudeCmd

func NewClaudeCmd() *cobra.Command

NewClaudeCmd creates the claude command with install and snippet subcommands.

func NewClaudeInstallCmd

func NewClaudeInstallCmd() *cobra.Command

NewClaudeInstallCmd creates the "claude install" subcommand that copies slash command files to ~/.claude/commands/ssu/.

func NewClaudeSnippetCmd

func NewClaudeSnippetCmd() *cobra.Command

NewClaudeSnippetCmd creates the "claude snippet" subcommand that prints the CLAUDE.md snippet for SSU.

func NewCompletionCmd

func NewCompletionCmd() *cobra.Command

NewCompletionCmd creates the completion subcommand for shell completion generation.

func NewConfigCmd

func NewConfigCmd() *cobra.Command

NewConfigCmd creates the config command with subcommands.

func NewConfigShowCmd

func NewConfigShowCmd() *cobra.Command

NewConfigShowCmd creates the "config show" subcommand that prints the merged configuration with source annotations.

func NewExecCmd

func NewExecCmd() *cobra.Command

NewExecCmd creates the exec subcommand.

func NewInitCmd

func NewInitCmd() *cobra.Command

NewInitCmd creates the init subcommand.

func NewProjectCmd

func NewProjectCmd() *cobra.Command

NewProjectCmd creates the project subcommand.

func NewPushCmd

func NewPushCmd() *cobra.Command

NewPushCmd creates the push subcommand.

func NewRmCmd added in v1.1.4

func NewRmCmd() *cobra.Command

NewRmCmd creates the rm subcommand for removing submodules.

func NewRollbackCmd

func NewRollbackCmd() *cobra.Command

NewRollbackCmd creates the rollback subcommand.

func NewRootCmd

func NewRootCmd(version, commit, date string) *cobra.Command

NewRootCmd creates the root cobra command with global flags and all subcommands.

func NewStatusCmd

func NewStatusCmd() *cobra.Command

NewStatusCmd creates the status subcommand.

func NewUpdateCmd

func NewUpdateCmd() *cobra.Command

NewUpdateCmd creates the update subcommand.

func NewVersionCmd

func NewVersionCmd(version, commit, date string) *cobra.Command

NewVersionCmd creates the version subcommand that prints build information.

Types

This section is empty.

Directories

Path Synopsis
Package compat detects old-style SSU flags (from the bash version) and prints friendly migration hints pointing users to the new subcommand syntax.
Package compat detects old-style SSU flags (from the bash version) and prints friendly migration hints pointing users to the new subcommand syntax.
Package output provides color-aware terminal output utilities for SSU.
Package output provides color-aware terminal output utilities for SSU.
Package tui provides shared lipgloss styles and bubbletea components for SSU.
Package tui provides shared lipgloss styles and bubbletea components for SSU.

Jump to

Keyboard shortcuts

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