mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-11-27 20:59:42 +08:00
21 lines
270 B
Go
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"
|
|
)
|