command

package
v0.92.1 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package command implements the command ruleset type.

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
}

func (Rule) ID added in v0.30.1

func (r Rule) ID() string

func (Rule) TYPE added in v0.30.1

func (Rule) TYPE() types.RulesetType

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