Documentation
¶
Index ¶
- func HintLine(label, command string) string
- func MountPanel(files []string, sources []string, stats string, hints []string) string
- func ResultPanel(title string, lines []string, hints []string) string
- type MultiSelectItem
- type MultiSelectResult
- type PickerItem
- type PickerResult
- type Step
- type StepKind
- type WizardResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MountPanel ¶
MountPanel renders a styled summary of a mount operation.
Types ¶
type MultiSelectItem ¶
type MultiSelectItem struct {
Key string // Internal key (e.g., "claude")
Label string // Display label (e.g., "Claude Code")
Description string // Optional description
Selected bool // Initial selection state
}
MultiSelectItem represents a toggleable item.
type MultiSelectResult ¶
MultiSelectResult holds the selected keys.
func RunMultiSelect ¶
func RunMultiSelect(title string, items []MultiSelectItem) (MultiSelectResult, error)
RunMultiSelect shows an interactive multi-select and returns the selected keys.
type PickerItem ¶
type PickerItem struct {
Name string
Description string
Detail string // e.g., "extends: base, 5 files"
}
PickerItem represents a selectable item in the profile picker.
type PickerResult ¶
PickerResult holds the outcome of the picker interaction.
func RunPicker ¶
func RunPicker(items []PickerItem, prompt string) (PickerResult, error)
RunPicker shows an interactive fuzzy profile picker and returns the selection.
type Step ¶
type Step struct {
Kind StepKind
Key string // Result key (e.g., "source_name")
Title string
Description string
Options []PickerItem // For StepSelect
Placeholder string // For StepInput
Default string // For StepInput or StepConfirm ("y"/"n")
}
Step defines a single step in a wizard flow.
type WizardResult ¶
WizardResult holds the collected values from all steps.
func RunWizard ¶
func RunWizard(steps []Step) (WizardResult, error)
RunWizard runs a multi-step wizard and returns the collected results.
Click to show internal directories.
Click to hide internal directories.