Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearContextOverride ¶
func ClearContextOverride()
func NewRootCmd ¶
func SetContextOverride ¶
func SetContextOverride(ctx *Context)
Types ¶
type Context ¶
Context bridges config and the core workspace for CLI commands.
func LoadContext ¶
LoadContext discovers config from the current working directory and builds a workspace.
func LoadContextFromDir ¶
LoadContextFromDir discovers config from the given directory and builds a workspace.
func (*Context) ResolveCapsule ¶
ResolveCapsule figures out which capsule the user means within a repo. Does exact match, then fuzzy match. Single fuzzy match is used directly; multiple matches prompt an interactive picker; zero matches return an error.
type PromptData ¶
type PromptData struct {
WorkspaceDisplayName string `json:"workspace_display_name"`
RepoName string `json:"repo_name"`
RepoDisplayName string `json:"repo_display_name"`
RepoColor string `json:"repo_color"`
CapsuleName string `json:"capsule_name"`
IsCapsuleBoarded bool `json:"is_capsule_boarded"`
}
PromptData holds the context available to prompt templates and JSON output.
Source Files
¶
- board.go
- capsule_create.go
- completions.go
- context.go
- debrief.go
- dock.go
- doctor.go
- hook_run.go
- init.go
- jump.go
- lift.go
- mc.go
- mc_keys.go
- mc_model.go
- mc_nav.go
- mc_palette.go
- mc_update.go
- mc_view.go
- open.go
- pr_lookup.go
- progress.go
- prompt.go
- rm.go
- root.go
- setup.go
- shell_init.go
- status.go
- status_collect.go
- status_format.go
- status_json.go
- status_llm.go
- upgrade.go
Click to show internal directories.
Click to hide internal directories.