Help us shape the future of Go! Take the 2026 Go Developer Survey

interactive

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Confirm added in v0.3.0

func Confirm(title string, message string, details []string) (bool, error)

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

func PromptTextInput(title, placeholder, example string) (string, error)

PromptTextInput provides a reusable interactive text input with example text

func RunInteractiveConfig

func RunInteractiveConfig(currentVersion string, mgr interface{}) error

RunInteractiveConfig runs an interactive configuration wizard

func SelectAPIModels added in v0.6.3

func SelectAPIModels(cfg *config.Config) error

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

func SelectAPIModelsManually(cfg *config.Config) error

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

func SelectBedrockModels(cfg *config.Config) error

SelectBedrockModels interactively selects models for a Bedrock profile Updates cfg.Model, cfg.FastModel, and cfg.HeavyModel with full profile IDs

func SelectRegionWithSearch

func SelectRegionWithSearch(currentRegion string) (string, error)

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

Jump to

Keyboard shortcuts

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