command

package
v0.0.0-...-d323686 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rule

type Rule struct {
	Define  string
	Help    string
	Handler func(types.Context, []*parser.Token) types.MsgPayload
}

type Ruleset

type Ruleset []Rule

func (Ruleset) Help

func (r Ruleset) Help(in string) (types.MsgPayload, error)

func (Ruleset) ProcessCommand

func (r Ruleset) ProcessCommand(ctx types.Context, in string) (types.MsgPayload, error)

Jump to

Keyboard shortcuts

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