input

package
v0.0.0-...-40e63e7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 5 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL