refactor
This commit is contained in:
@@ -6,9 +6,15 @@ type command interface {
|
||||
Name() string
|
||||
Help() string
|
||||
Do([]string, *CommandEnv, io.Writer) error
|
||||
IsResourceHeavy() bool
|
||||
HasTag(tag CommandTag) bool
|
||||
}
|
||||
|
||||
var (
|
||||
Commands = []command{}
|
||||
)
|
||||
|
||||
type CommandTag string
|
||||
|
||||
const (
|
||||
ResourceHeavy CommandTag = "resourceHeavy"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user