Documentation
¶
Overview ¶
Package prompt provides interactive prompt functionality for CM.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // User input errors. ErrInvalidInput = errors.New("invalid user input") ErrUserCancelled = errors.New("user cancelled operation") ErrInvalidConfirmationInput = errors.New("invalid input: please enter 'y' or 'n'") )
Error definitions for prompt package.
Functions ¶
This section is empty.
Types ¶
type Prompter ¶ added in v0.19.0
type Prompter interface {
// PromptForBasePath prompts the user for the base path with examples.
PromptForBasePath(defaultBasePath string) (string, error)
// PromptForConfirmation prompts the user for confirmation with a default value.
PromptForConfirmation(message string, defaultYes bool) (bool, error)
}
Prompter interface provides user interaction functionality.
Click to show internal directories.
Click to hide internal directories.