Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Prompter ¶
type Prompter interface {
// PromptChoice synchronously prompts user to choose an option from a list
PromptChoice(ctx context.Context, message string, choices []string) (int, error)
// PromptText synchronously prompts a user to enter some text
PromptText(ctx context.Context, message string) (string, error)
// Requests returns a channel to listen for prompt requests
Requests() <-chan Request
// Respond submits a response to a previously issued prompt
Respond(resp Response)
}
Click to show internal directories.
Click to hide internal directories.