Documentation
¶
Index ¶
- type Argument
- type Command
- type Definition
- type Execution
- func (e *Execution) Ask(prompt string, defaultAnswer string) (string, error)
- func (e *Execution) AskPassword(prompt string) (string, error)
- func (e *Execution) AskWithChoices(prompt string, choices []string) (int, error)
- func (e *Execution) Confirm(prompt string) bool
- func (e *Execution) PrintTable(headers []string, rows [][]string) error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command interface {
Definition() Definition
Run(ctx context.Context, execution *Execution) error
}
type Definition ¶
type Execution ¶
type Execution struct {
*go_console.Script
Question *question.Helper
}
func (*Execution) AskWithChoices ¶
Click to show internal directories.
Click to hide internal directories.