cmd

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: MIT Imports: 51 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

func GetRootCmd

func GetRootCmd() *cobra.Command

GetRootCmd returns the root command for introspection purposes.

Types

type AIArchitecture added in v0.2.0

type AIArchitecture struct {
	Description string            `json:"description"`
	Structure   map[string]string `json:"structure"`
}

AIArchitecture describes the project structure

type AICategory added in v0.2.0

type AICategory struct {
	Name        string   `json:"name"`
	Description string   `json:"description"`
	Commands    []string `json:"commands"`
}

AICategory represents a command category

type AICommandInfo added in v0.2.0

type AICommandInfo struct {
	Name        string       `json:"name"`
	Path        string       `json:"path"`
	Category    string       `json:"category"`
	Short       string       `json:"short"`
	Long        string       `json:"long,omitempty"`
	Usage       string       `json:"usage"`
	Flags       []AIFlagInfo `json:"flags,omitempty"`
	Examples    []string     `json:"examples,omitempty"`
	Subcommands []string     `json:"subcommands,omitempty"`
}

AICommandInfo represents detailed command documentation

type AIContext added in v0.2.0

type AIContext struct {
	Overview     AIOverview      `json:"overview"`
	Categories   []AICategory    `json:"categories"`
	Commands     []AICommandInfo `json:"commands"`
	Architecture AIArchitecture  `json:"architecture"`
}

AIContext represents the complete AI context document

type AIContextOptions added in v0.2.0

type AIContextOptions struct {
	JSON     bool   // --json: output as structured JSON
	Compact  bool   // --compact: omit examples and long descriptions
	Category string // --category: filter to a specific category
}

AIContextOptions configures the aicontext command behavior

type AIFlagInfo added in v0.2.0

type AIFlagInfo struct {
	Name        string `json:"name"`
	Shorthand   string `json:"shorthand,omitempty"`
	Type        string `json:"type"`
	Default     string `json:"default"`
	Description string `json:"description"`
}

AIFlagInfo represents a command flag

type AIOverview added in v0.2.0

type AIOverview struct {
	Name        string   `json:"name"`
	Description string   `json:"description"`
	Principles  []string `json:"principles"`
	Features    []string `json:"features"`
}

AIOverview describes the application

type CommandDetail added in v0.2.0

type CommandDetail struct {
	Name        string          `json:"name"`
	Use         string          `json:"use"`
	Short       string          `json:"short"`
	Long        string          `json:"long,omitempty"`
	Flags       []FlagDetail    `json:"flags,omitempty"`
	Subcommands []CommandDetail `json:"commands,omitempty"`
}

CommandDetail represents a command's full information

type ExportData added in v0.3.0

type ExportData struct {
	Version    int                `json:"version"`
	ExportedAt time.Time          `json:"exported_at"`
	Profiles   []model.Profile    `json:"profiles"`
	Workspaces []model.Workspace  `json:"workspaces"`
	Repos      []model.Repository `json:"repositories"`
	Config     *model.Config      `json:"config,omitempty"`
}

ExportData represents the complete export structure

type FlagDetail added in v0.2.0

type FlagDetail struct {
	Name        string `json:"name"`
	Shorthand   string `json:"shorthand,omitempty"`
	Type        string `json:"type"`
	Default     string `json:"default"`
	Description string `json:"description"`
}

FlagDetail represents a single flag's information

type GHFlags added in v0.3.0

type GHFlags struct {
	Token   string
	Profile string
	Repo    string
	JSON    bool
}

GHFlags holds common flags for all gh subcommands

type OrgListItem added in v0.3.0

type OrgListItem struct {
	Login      string `json:"login"`
	Name       string `json:"name"`
	Repos      int    `json:"repos"`
	Mirrored   bool   `json:"mirrored"`
	LocalRepos int    `json:"local_repos"`
}

OrgListItem represents an organization in JSON output

type ProfileEncryptionInfo added in v0.3.1

type ProfileEncryptionInfo struct {
	Version   int        `json:"version"`
	CreatedAt *time.Time `json:"created_at,omitempty"`
	RotatedAt *time.Time `json:"rotated_at,omitempty"`
}

ProfileEncryptionInfo contains keystore encryption metadata

type ProfileListItem added in v0.3.0

type ProfileListItem struct {
	Name       string    `json:"name"`
	Host       string    `json:"host"`
	User       string    `json:"user"`
	Storage    string    `json:"storage"`
	Scopes     []string  `json:"scopes"`
	Workspace  string    `json:"workspace,omitempty"`
	Default    bool      `json:"default"`
	CreatedAt  time.Time `json:"created_at"`
	LastUsedAt time.Time `json:"last_used_at,omitzero"`
}

ProfileListItem represents a profile in JSON output

type ProfileStatusOutput added in v0.3.1

type ProfileStatusOutput struct {
	Name       string                 `json:"name"`
	Host       string                 `json:"host"`
	User       string                 `json:"user"`
	Storage    string                 `json:"storage"`
	Scopes     []string               `json:"scopes"`
	Workspace  string                 `json:"workspace,omitempty"`
	Default    bool                   `json:"default"`
	CreatedAt  time.Time              `json:"created_at"`
	LastUsedAt time.Time              `json:"last_used_at,omitempty"`
	Encryption *ProfileEncryptionInfo `json:"encryption,omitempty"`
}

ProfileStatusOutput represents the JSON output for profile status

type WorkspaceInfoItem added in v0.3.0

type WorkspaceInfoItem struct {
	Name        string    `json:"name"`
	Path        string    `json:"path"`
	Description string    `json:"description,omitempty"`
	RepoCount   int       `json:"repo_count"`
	Repos       []string  `json:"repos,omitempty"`
	Profiles    []string  `json:"profiles,omitempty"`
	CreatedAt   time.Time `json:"created_at"`
	UpdatedAt   time.Time `json:"updated_at"`
	DiskUsage   string    `json:"disk_usage,omitempty"`
	PathExists  bool      `json:"path_exists"`
}

WorkspaceInfoItem represents detailed workspace info for JSON output

type WorkspaceListItem added in v0.3.0

type WorkspaceListItem struct {
	Name        string `json:"name"`
	Path        string `json:"path"`
	Description string `json:"description,omitempty"`
	RepoCount   int    `json:"repo_count"`
	Profiles    int    `json:"profiles"`
}

WorkspaceListItem represents a workspace in JSON output

type WorkspaceWithRepos added in v0.3.0

type WorkspaceWithRepos struct {
	Name        string               `json:"name"`
	Path        string               `json:"path"`
	Description string               `json:"description,omitempty"`
	Active      bool                 `json:"active"`
	Repos       []core.RepoWithStats `json:"repos"`
}

WorkspaceWithRepos groups repos by workspace for JSON output

Jump to

Keyboard shortcuts

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