Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interpreter ¶
type Interpreter struct {
// contains filtered or unexported fields
}
Interpreter reads user input, tokenizes it, and dispatches the tokens to their respective commands.
func NewCLI ¶
func NewCLI(api api.API) *Interpreter
func (*Interpreter) Exec ¶
func (i *Interpreter) Exec(line string) error
Exec scans an input line, finds the verb in the command directory, and hands execution over to the command.
Click to show internal directories.
Click to hide internal directories.