aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command.go
blob: cfd994f3fd1a9c0d39a3f558c4fa5132ccf608fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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"
)