mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-12-19 13:37:49 +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"
|
|
)
|