Documentation
¶
Overview ¶
Package setupflow is the question surface a setup flow on the gateway asks the terminal UI through
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCancelled = errors.New("setup cancelled")
ErrCancelled ends a flow the user left
Functions ¶
Types ¶
type Asker ¶
type Asker interface {
Say(line string)
Choose(question string, options []Option, def int) (int, error)
Check(question string, items []Item, selected map[int]bool, tokens map[string]int) (map[int]bool, error)
Text(question, def string, secret bool) (string, error)
}
Asker is what a setup flow prints and asks through, every question blocking until the user answers
Click to show internal directories.
Click to hide internal directories.