MCPcopy
hub / github.com/name5566/leaf / Command

Interface Command

console/command.go:20–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20type Command interface {
21 // must goroutine safe
22 name() string
23 // must goroutine safe
24 help() string
25 // must goroutine safe
26 run(args []string) string
27}
28
29type ExternalCommand struct {
30 _name string

Callers 3

RunMethod · 0.65
RegisterFunction · 0.65
RunMethod · 0.95

Implementers 4

ExternalCommandconsole/command.go
CommandHelpconsole/command.go
CommandCPUProfconsole/command.go
CommandProfconsole/command.go

Calls

no outgoing calls

Tested by

no test coverage detected