command

package
v0.0.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidPrimaryArg     = errors.New("invalid primary arg")
	ErrPrimaryArgExist       = errors.New("primary arg already exists")
	ErrCommandPrefixConflict = errors.New("primary arg conflict with command prefix")
)

Functions

This section is empty.

Types

type LspGroupCommandManager

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

func NewLspGroupCommandManager

func NewLspGroupCommandManager(commandPrefix string) *LspGroupCommandManager

func (*LspGroupCommandManager) Execute

func (*LspGroupCommandManager) Register

func (m *LspGroupCommandManager) Register(primaryArg string, command command.GroupCommand) error

type Parser

type Parser struct {
	Command string
	Args    []string
}

func NewParser

func NewParser() *Parser

func (*Parser) GetArgs

func (p *Parser) GetArgs() []string

func (*Parser) GetCmd

func (p *Parser) GetCmd() string

func (*Parser) Parse

func (p *Parser) Parse(e []message.IMessageElement)

Jump to

Keyboard shortcuts

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