Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInterrupted = errors.New("user interrupted")
ErrInterrupted must be returned when user interrupted operation
Functions ¶
This section is empty.
Types ¶
type Dialog ¶
type Dialog interface { // One result for one question One(ctx context.Context, question string, defaultValue string) (string, error) // Many results for one question Many(ctx context.Context, question string, defaultValue []string) ([]string, error) // Select one option from list Select(ctx context.Context, question string, defaultValue string, options []string) (string, error) // Choose several options from list Choose(ctx context.Context, question string, defaultValue []string, options []string) ([]string, error) }
Click to show internal directories.
Click to hide internal directories.