cmd

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: MIT Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command interface {
	Execute(sender ents.Sender, args []string)
}

type CommandManager

type CommandManager interface {
	ReplaceManager(newManager CommandManager)

	Add(cmd Command, values ...string)
	AddStruct(cmd StructCommand, values ...string)
	Delete(values ...string)
	Get(prefix string) *StructCommand
}

type StructCommand

type StructCommand struct {
	Execute func(sender ents.Sender, args []string)
	Tab     func(sender ents.Sender, args []string) []string
}

type TabCommand

type TabCommand interface {
	Command
	Tab(sender ents.Sender, args []string) []string
}

Jump to

Keyboard shortcuts

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