command

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Add       string = "add"
	Addf      string = "addf"
	Replace   string = "replace"
	Replacef  string = "replacef"
	Set       string = "set"
	Setf      string = "setf"
	Append    string = "append"
	Appendf   string = "appendf"
	Get       string = "get"
	Clean     string = "clean"
	Cleanf    string = "cleanf"
	Remove    string = "remove"
	Removef   string = "removef"
	Begin     string = "begin"
	End       string = "end"
	CanAccess string = "canaccess"
	Signout   string = "signout"
	Close     string = "close"
	Error     string = "error"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Indent   int
	Name     string // mandatory command name
	Values   []string
	Attrs    map[string]string
	Lines    []string
	Commands []*Command
}

func Parse

func Parse(cmdText string, parseName bool) (*Command, error)

func (*Command) IsSupported added in v0.1.7

func (cmd *Command) IsSupported() bool

func (*Command) ShouldReturn

func (cmd *Command) ShouldReturn() bool

func (*Command) String added in v0.1.7

func (cmd *Command) String() string

type CommandMetadata

type CommandMetadata struct {
	Name         string
	ShouldReturn bool
}

Jump to

Keyboard shortcuts

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