command

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Mgr *commandMgr

Functions

func NewCommandMgr

func NewCommandMgr() *commandMgr

Types

type Command

type Command interface {
	Name() string
	Help() string
	Run(args []string) string
}

type CommandCPUProf

type CommandCPUProf struct{}

func (*CommandCPUProf) Help

func (c *CommandCPUProf) Help() string

func (*CommandCPUProf) Name

func (c *CommandCPUProf) Name() string

func (*CommandCPUProf) Run

func (c *CommandCPUProf) Run(args []string) string

type CommandHelp

type CommandHelp struct{}

func (*CommandHelp) Help

func (c *CommandHelp) Help() string

func (*CommandHelp) Name

func (c *CommandHelp) Name() string

func (*CommandHelp) Run

func (c *CommandHelp) Run([]string) string

type CommandProf

type CommandProf struct{}

func (*CommandProf) Help

func (c *CommandProf) Help() string

func (*CommandProf) Name

func (c *CommandProf) Name() string

func (*CommandProf) Run

func (c *CommandProf) Run(args []string) string

type CommandSysinfo

type CommandSysinfo struct{}

func (*CommandSysinfo) Help

func (c *CommandSysinfo) Help() string

func (*CommandSysinfo) Name

func (c *CommandSysinfo) Name() string

func (*CommandSysinfo) Run

func (c *CommandSysinfo) Run(args []string) string

Jump to

Keyboard shortcuts

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