1
0
mirror of https://github.com/seaweedfs/seaweedfs.git synced 2024-12-29 20:47:54 +08:00
seaweedfs/weed/shell/command.go
2024-09-29 10:38:22 -07:00

21 lines
270 B
Go

package shell
import "io"
type command interface {
Name() string
Help() string
Do([]string, *CommandEnv, io.Writer) error
HasTag(tag CommandTag) bool
}
var (
Commands = []command{}
)
type CommandTag string
const (
ResourceHeavy CommandTag = "resourceHeavy"
)