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.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/weed/shell/command.go b/weed/shell/command.go
new file mode 100644
index 000000000..e1a820ff8
--- /dev/null
+++ b/weed/shell/command.go
@@ -0,0 +1,14 @@
+package shell
+
+import "io"
+
+type command interface {
+ Name() string
+ Help() string
+ Do([]string, *CommandEnv, io.Writer) error
+ IsResourceHeavy() bool
+}
+
+var (
+ Commands = []command{}
+)