command

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commanders = CommandersChain{}

Functions

This section is empty.

Types

type Commander

type Commander interface {
	Keyword() string
	Run(event interface{}, arg string) string
	Example() string
}

type CommandersChain

type CommandersChain struct {
	RegisteredCommanders []Commander
}

CommandersChain defines a Commander array.

func (*CommandersChain) GetHelpMessage

func (c *CommandersChain) GetHelpMessage() string

func (*CommandersChain) Register

func (c *CommandersChain) Register(cmd Commander)

Jump to

Keyboard shortcuts

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