diff options
| author | chrislu <chris.lu@gmail.com> | 2024-09-29 10:38:22 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2024-09-29 10:38:22 -0700 |
| commit | ec30a504bae6cad75f859964e14c60d39cc43709 (patch) | |
| tree | 1a93cdc9d604b78ddce854009083b6af121c5137 /weed/shell/command.go | |
| parent | 9cd263b2cec3ba40623d4738c453818b0f3b079b (diff) | |
| download | seaweedfs-ec30a504bae6cad75f859964e14c60d39cc43709.tar.xz seaweedfs-ec30a504bae6cad75f859964e14c60d39cc43709.zip | |
refactor
Diffstat (limited to 'weed/shell/command.go')
| -rw-r--r-- | weed/shell/command.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/weed/shell/command.go b/weed/shell/command.go index e1a820ff8..cfd994f3f 100644 --- a/weed/shell/command.go +++ b/weed/shell/command.go @@ -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" +) |
