commands

package
v0.0.0-...-6a16b6f Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutionError

type ExecutionError struct {
	// contains filtered or unexported fields
}

type Interpreter

type Interpreter struct {
	// contains filtered or unexported fields
}

Command interpreter

func NewInterpreter

func NewInterpreter() *Interpreter

func (*Interpreter) AddCommand

func (it *Interpreter) AddCommand(path string, f func(ctx context.Context, args []string, ext ...interface{}) error) (err error)

func (*Interpreter) Run

func (it *Interpreter) Run(ctx context.Context, cmd string, ext ...interface{}) (err error)

type InvalidArgsError

type InvalidArgsError struct {
	// contains filtered or unexported fields
}

type InvalidCommandError

type InvalidCommandError struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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