SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
refactor
chrislu9cd263b2cec3
diff --git a/weed/shell/command.go b/weed/shell/command.gonew file mode 100644index 0000000000..e1a820ff8f--- /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{}+)diff --git a/weed/shell/commands.go b/weed/shell/commands.goindex a29436a3c5..582ee560d3 100644--- a/weed/shell/commands.go+++ b/weed/shell/commands.go@@ -6,7 +6,6 @@ import ("github.com/seaweedfs/seaweedfs/weed/operation""github.com/seaweedfs/seaweedfs/weed/pb/volume_server_pb""github.com/seaweedfs/seaweedfs/weed/storage/needle_map"- "io""net/url""strconv""strings"@@ -38,17 +37,6 @@ type CommandEnv struct {locker *exclusive_locks.ExclusiveLocker}-type command interface {- Name() string- Help() string- Do([]string, *CommandEnv, io.Writer) error- IsResourceHeavy() bool-}--var (- Commands = []command{}-)-func NewCommandEnv(options *ShellOptions) *CommandEnv {ce := &CommandEnv{env: make(map[string]string),