aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2024-09-29 10:35:53 -0700
committerchrislu <chris.lu@gmail.com>2024-09-29 10:35:53 -0700
commit9cd263b2cec3ba40623d4738c453818b0f3b079b (patch)
tree5c86e06dc8cb8088d887f105e01b1309f6cb3605 /weed/shell/command.go
parent701abbb9df1b21b2acef8af6b5f1093754dd4f40 (diff)
downloadseaweedfs-9cd263b2cec3ba40623d4738c453818b0f3b079b.tar.xz
seaweedfs-9cd263b2cec3ba40623d4738c453818b0f3b079b.zip
refactor
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{}
+)