aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/shell/command.go')
-rw-r--r--weed/shell/command.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/weed/shell/command.go b/weed/shell/command.go
new file mode 100644
index 000000000..cfd994f3f
--- /dev/null
+++ b/weed/shell/command.go
@@ -0,0 +1,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"
+)