Documentation
¶
Index ¶
- func Confirm(title string, message string, details []string) (bool, error)
- func InteractiveSelect(title, placeholder string, options []SelectOption, currentValue string) (string, error)
- func PromptTextInput(title, placeholder, example string) (string, error)
- func RunInteractiveConfig(currentVersion string, mgr interface{}) error
- func SelectAPIModels(cfg *config.Config) error
- func SelectAPIModelsManually(cfg *config.Config) error
- func SelectBedrockModels(cfg *config.Config) error
- func SelectRegionWithSearch(currentRegion string) (string, error)
- type SelectOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Confirm ¶ added in v0.3.0
Confirm shows a confirmation dialog that requires typing "yes" to confirm
func InteractiveSelect ¶
func InteractiveSelect(title, placeholder string, options []SelectOption, currentValue string) (string, error)
InteractiveSelect provides a reusable interactive selector with real-time filtering
func PromptTextInput ¶ added in v0.6.5
PromptTextInput provides a reusable interactive text input with example text
func RunInteractiveConfig ¶
RunInteractiveConfig runs an interactive configuration wizard
func SelectAPIModels ¶ added in v0.6.3
SelectAPIModels interactively selects models for an API profile Updates cfg.Model, cfg.FastModel, and cfg.HeavyModel with model IDs
func SelectAPIModelsManually ¶ added in v0.6.5
SelectAPIModelsManually prompts for manual model entry when /v1/models fails This allows users to use any API, even those without /v1/models support
func SelectBedrockModels ¶ added in v0.6.3
SelectBedrockModels interactively selects models for a Bedrock profile Updates cfg.Model, cfg.FastModel, and cfg.HeavyModel with full profile IDs
func SelectRegionWithSearch ¶
SelectRegionWithSearch provides an interactive region selector with real-time filtering
Types ¶
type SelectOption ¶
type SelectOption struct {
ID string // The value to return when selected
Display string // The text to display
IsHeader bool // If true, this is a non-selectable header
}
SelectOption represents an option in the selector