Documentation
¶
Index ¶
- func Execute()
- func GetRootCmd() *cobra.Command
- type AIArchitecture
- type AICategory
- type AICommandInfo
- type AIContext
- type AIContextOptions
- type AIFlagInfo
- type AIOverview
- type CommandDetail
- type ExportData
- type FlagDetail
- type GHFlags
- type OrgListItem
- type ProfileEncryptionInfo
- type ProfileListItem
- type ProfileStatusOutput
- type WorkspaceInfoItem
- type WorkspaceListItem
- type WorkspaceWithRepos
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRootCmd ¶
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 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
Source Files
¶
- actions.go
- add.go
- aicontext.go
- auth_git_credential.go
- branches.go
- checkout.go
- clone.go
- cmdtree.go
- commit.go
- config.go
- configure.go
- data.go
- diff.go
- favorite.go
- gh.go
- gh_actions.go
- gh_contributors.go
- gh_git_branch.go
- gh_git_clone.go
- gh_git_commit.go
- gh_git_diff.go
- gh_git_log.go
- gh_git_pull.go
- gh_git_push.go
- gh_git_status.go
- gh_issues.go
- gh_pr.go
- gh_release.go
- helpers.go
- list.go
- map.go
- merge.go
- mirror.go
- nerds.go
- open.go
- org.go
- org_list.go
- org_mirror.go
- pm.go
- pm_jira.go
- pm_jira_issues.go
- pm_jira_sprints.go
- pm_zenhub.go
- profile.go
- pull.go
- push.go
- reauthor.go
- remove.go
- repo.go
- repo_edit.go
- repo_open.go
- root.go
- scan.go
- server.go
- service.go
- snapshot.go
- standalone.go
- standalone_accept.go
- standalone_archive.go
- standalone_clients.go
- standalone_connect.go
- standalone_decrypt.go
- standalone_encrypt.go
- standalone_extract.go
- standalone_init.go
- standalone_status.go
- stash.go
- stats.go
- status.go
- tag.go
- unfavorite.go
- workspace.go