package
1.123.0
Repository: https://github.com/digitalocean/doctl.git
Documentation: pkg.go.dev

# Functions

New creates a new prompt.
WithDefaultChoice sets the default choice on the prompt.
WithPersistPrompt configures the prompt persistence behavior.

# Constants

No represents the "no" choice.
PersistPromptAlways always persists the prompt on the screen regardless of the choice.
PersistPromptIfNo only persists the prompt on the screen if the choice is No.
PersistPromptIfYes only persists the prompt on the screen if the choice is Yes.
Undecided is returned if the user was unable to make a choice.
Yes represents the "yes" choice.

# Structs

Prompt describes a confirmation prompt.

# Type aliases

Choice describes a prompt choice.
Option configures an option on a prompt.
PersistPrompt describes the behavior of the prompt after a choice is made.