simplecommand

package module
v0.0.0-...-a27cf8f Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCommand

func RegisterCommand(proxy *proxy.Proxy, commandName string, simpleCommand SimpleCommand, aliases ...string)

Types

type SimpleCommand

type SimpleCommand interface {
	Execute(invocation SimpleCommandInvocation) error
	Suggest(invocation SimpleCommandInvocation) []string
	HasPermission(source command.Source) bool
}

type SimpleCommandInvocation

type SimpleCommandInvocation struct {
	Arguments []string
	Source    command.Source
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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