diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-08-02 11:49:40 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-08-02 11:49:40 -0700 |
| commit | fe60c6ef9a09f2190926a49aaf3c15ab29bf5812 (patch) | |
| tree | b78613564a7972e4a082d72b9255c83f98a3653d | |
| parent | 0ca641f33ca334eb6bb6004806054510918372ab (diff) | |
| download | seaweedfs-fe60c6ef9a09f2190926a49aaf3c15ab29bf5812.tar.xz seaweedfs-fe60c6ef9a09f2190926a49aaf3c15ab29bf5812.zip | |
minor changes
| -rw-r--r-- | weed/command/autocomplete.go | 6 | ||||
| -rw-r--r-- | weed/command/command.go | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/weed/command/autocomplete.go b/weed/command/autocomplete.go index b98c16cf3..9a545a183 100644 --- a/weed/command/autocomplete.go +++ b/weed/command/autocomplete.go @@ -41,7 +41,7 @@ func AutocompleteMain(commands []*Command) bool { func installAutoCompletion() bool { if runtime.GOOS == "windows" { - fmt.Printf("windows is not supported") + fmt.Println("windows is not supported") return false } @@ -56,7 +56,7 @@ func installAutoCompletion() bool { func uninstallAutoCompletion() bool { if runtime.GOOS == "windows" { - fmt.Printf("windows is not supported") + fmt.Println("windows is not supported") return false } @@ -91,7 +91,7 @@ func runAutocomplete(cmd *Command, args []string) bool { var cmdUnautocomplete = &Command{ Run: runUnautocomplete, - UsageLine: "unautocomplete", + UsageLine: "autocomplete.uninstall", Short: "uninstall autocomplete", Long: `weed autocomplete is uninstalled in the shell. diff --git a/weed/command/command.go b/weed/command/command.go index 022aba194..9ae93fe61 100644 --- a/weed/command/command.go +++ b/weed/command/command.go @@ -8,6 +8,8 @@ import ( ) var Commands = []*Command{ + cmdAutocomplete, + cmdUnautocomplete, cmdBackup, cmdBenchmark, cmdCompact, @@ -36,8 +38,6 @@ var Commands = []*Command{ cmdVersion, cmdVolume, cmdWebDav, - cmdAutocomplete, - cmdUnautocomplete, } type Command struct { |
