seaweedfs/weed/shell/command.go

15 lines
186 B
Go
Raw Normal View History

2024-09-30 01:35:53 +08:00
package shell
import "io"
type command interface {
Name() string
Help() string
Do([]string, *CommandEnv, io.Writer) error
IsResourceHeavy() bool
}
var (
Commands = []command{}
)