Files
seaweedfs/weed/shell/command.go

21 lines
270 B
Go
Raw Normal View History

2024-09-29 10:35:53 -07:00
package shell
import "io"
type command interface {
Name() string
Help() string
Do([]string, *CommandEnv, io.Writer) error
2024-09-29 10:38:22 -07:00
HasTag(tag CommandTag) bool
2024-09-29 10:35:53 -07:00
}
var (
Commands = []command{}
)
2024-09-29 10:38:22 -07:00
type CommandTag string
const (
ResourceHeavy CommandTag = "resourceHeavy"
)