command

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoEqual            = errors.New("no equal")
	ErrNoConfig           = errors.New("no config")
	ErrNoCommaConfig      = errors.New("no comma config")
	ErrNotInt             = errors.New("not int")
	ErrEmptyKey           = errors.New("empty key")
	ErrNotSupportKey      = errors.New("not support key")
	ErrNotSupportOperator = errors.New("not support operator")
)

Functions

func ExecuteCommand

func ExecuteCommand(cmd *model.Command, com *model.Common) error

func ParseCommand

func ParseCommand(lineNumber int, source string) (*model.Command, error)

func ParseCommands

func ParseCommands(sources []string) ([]*model.Command, error)

func RunCommand

func RunCommand(cmds []*model.Command, com *model.Common) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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