refactor
This commit is contained in:
14
weed/shell/command.go
Normal file
14
weed/shell/command.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package shell
|
||||
|
||||
import "io"
|
||||
|
||||
type command interface {
|
||||
Name() string
|
||||
Help() string
|
||||
Do([]string, *CommandEnv, io.Writer) error
|
||||
IsResourceHeavy() bool
|
||||
}
|
||||
|
||||
var (
|
||||
Commands = []command{}
|
||||
)
|
||||
Reference in New Issue
Block a user