Versions in this module Expand all Collapse all v1 v1.23.14 Apr 4, 2026 v1.23.13 Mar 26, 2026 Changes in this version + func NewProgressLog(lines int, prefix, title, header string) *progressLog + type Asker func(p survey.Prompt, response any) error + func NewAsker(noPrompt bool, isTerminal bool, w io.Writer, r io.Reader) Asker + type AskerConsole struct + func (c *AskerConsole) Confirm(ctx context.Context, options ConsoleOptions) (bool, error) + func (c *AskerConsole) DoInteraction(action func() error) error + func (c *AskerConsole) EnsureBlankLine(ctx context.Context) + func (c *AskerConsole) GetFormatter() output.Formatter + func (c *AskerConsole) GetWriter() io.Writer + func (c *AskerConsole) Handles() ConsoleHandles + func (c *AskerConsole) IsNoPromptMode() bool + func (c *AskerConsole) IsSpinnerInteractive() bool + func (c *AskerConsole) IsSpinnerRunning(ctx context.Context) bool + func (c *AskerConsole) IsUnformatted() bool + func (c *AskerConsole) Message(ctx context.Context, message string) + func (c *AskerConsole) MessageUxItem(ctx context.Context, item ux.UxItem) + func (c *AskerConsole) MultiSelect(ctx context.Context, options ConsoleOptions) ([]string, error) + func (c *AskerConsole) Prompt(ctx context.Context, options ConsoleOptions) (string, error) + func (c *AskerConsole) PromptDialog(ctx context.Context, dialog PromptDialog) (map[string]any, error) + func (c *AskerConsole) PromptFs(ctx context.Context, options ConsoleOptions, fsOpts FsOptions) (string, error) + func (c *AskerConsole) Select(ctx context.Context, options ConsoleOptions) (int, error) + func (c *AskerConsole) SetWriter(writer io.Writer) + func (c *AskerConsole) ShowPreviewer(ctx context.Context, options *ShowPreviewerOptions) io.Writer + func (c *AskerConsole) ShowSpinner(ctx context.Context, title string, format SpinnerUxType) + func (c *AskerConsole) StopPreviewer(ctx context.Context, keepLogs bool) + func (c *AskerConsole) StopSpinner(ctx context.Context, lastMessage string, format SpinnerUxType) + func (c *AskerConsole) SupportsPromptDialog() bool + func (c *AskerConsole) WaitForEnter() + func (c *AskerConsole) WarnForFeature(ctx context.Context, key alpha.FeatureId) + type Console interface + Confirm func(ctx context.Context, options ConsoleOptions) (bool, error) + DoInteraction func(action func() error) error + EnsureBlankLine func(ctx context.Context) + GetWriter func() io.Writer + Handles func() ConsoleHandles + IsNoPromptMode func() bool + IsSpinnerInteractive func() bool + IsSpinnerRunning func(ctx context.Context) bool + Message func(ctx context.Context, message string) + MessageUxItem func(ctx context.Context, item ux.UxItem) + MultiSelect func(ctx context.Context, options ConsoleOptions) ([]string, error) + Prompt func(ctx context.Context, options ConsoleOptions) (string, error) + PromptDialog func(ctx context.Context, dialog PromptDialog) (map[string]any, error) + PromptFs func(ctx context.Context, options ConsoleOptions, fsOptions FsOptions) (string, error) + Select func(ctx context.Context, options ConsoleOptions) (int, error) + SetWriter func(writer io.Writer) + ShowPreviewer func(ctx context.Context, options *ShowPreviewerOptions) io.Writer + ShowSpinner func(ctx context.Context, title string, format SpinnerUxType) + StopPreviewer func(ctx context.Context, keepLogs bool) + StopSpinner func(ctx context.Context, lastMessage string, format SpinnerUxType) + SupportsPromptDialog func() bool + WaitForEnter func() + WarnForFeature func(ctx context.Context, id alpha.FeatureId) + func NewConsole(noPrompt bool, isTerminal bool, writers Writers, handles ConsoleHandles, ...) Console + type ConsoleHandles struct + Stderr io.Writer + Stdin io.Reader + Stdout io.Writer + type ConsoleOptions struct + DefaultValue any + Help string + IsPassword bool + Message string + OptionDetails []string + Options []string + type ConsoleShim interface + GetFormatter func() output.Formatter + IsUnformatted func() bool + type ExternalPromptConfiguration struct + Endpoint string + Key string + NoPromptDialog bool + Transporter policy.Transporter + type FsOptions struct + Root string + SuggestOpts FsSuggestOptions + type FsSuggestOptions struct + ExcludeCurrentDir bool + ExcludeDirectories bool + ExcludeFiles bool + IncludeHiddenFiles bool + type PromptDialog struct + Description string + Prompts []PromptDialogItem + Title string + type PromptDialogChoice struct + Description string + Value string + type PromptDialogItem struct + Choices []PromptDialogChoice + DefaultValue *string + Description *string + DisplayName string + ID string + Kind string + Required bool + type ShowPreviewerOptions struct + MaxLineCount int + Prefix string + Title string + type SpinnerUxType int + const Step + const StepDone + const StepFailed + const StepSkipped + const StepWarning + func GetStepResultFormat(result error) SpinnerUxType + type TerminalWidthFn func() int + type Writers struct + Output io.Writer + Spinner io.Writer