cmd

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandHandler

type CommandHandler interface {
	Init(context application.Context) error
	Execute(cmd string, args []string) error
}

type CommandManager

type CommandManager struct {
	// contains filtered or unexported fields
}

func (*CommandManager) ExecuteCommand

func (inst *CommandManager) ExecuteCommand(cmd string, args []string) error

func (*CommandManager) GetHandler

func (inst *CommandManager) GetHandler(cmd string) (CommandHandler, error)

func (*CommandManager) Init

func (inst *CommandManager) Init() error

func (*CommandManager) Inject

func (inst *CommandManager) Inject(context application.Context) error

func (*CommandManager) SetDefaultHandler

func (inst *CommandManager) SetDefaultHandler(h CommandHandler)

type CommandRegistration

type CommandRegistration struct {
	Name    string
	Handler CommandHandler
}

Jump to

Keyboard shortcuts

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