command

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Add     string = "add"
	Addf           = "addf"
	Set            = "set"
	Setf           = "setf"
	Append         = "append"
	Appendf        = "appendf"
	Get            = "get"
	Clean          = "clean"
	Cleanf         = "cleanf"
	Remove         = "remove"
	Removef        = "removef"
	Quit           = "quit"
)

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
}

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