seaweedfs/weed/shell/command.go

21 lines
270 B
Go
Raw Permalink 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
2024-09-30 01:38:22 +08:00
HasTag(tag CommandTag) bool
2024-09-30 01:35:53 +08:00
}
var (
Commands = []command{}
)
2024-09-30 01:38:22 +08:00
type CommandTag string
const (
ResourceHeavy CommandTag = "resourceHeavy"
)