mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
minor changes
This commit is contained in:
parent
0ca641f33c
commit
fe60c6ef9a
|
@ -41,7 +41,7 @@ func AutocompleteMain(commands []*Command) bool {
|
||||||
|
|
||||||
func installAutoCompletion() bool {
|
func installAutoCompletion() bool {
|
||||||
if runtime.GOOS == "windows" {
|
if runtime.GOOS == "windows" {
|
||||||
fmt.Printf("windows is not supported")
|
fmt.Println("windows is not supported")
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ func installAutoCompletion() bool {
|
||||||
|
|
||||||
func uninstallAutoCompletion() bool {
|
func uninstallAutoCompletion() bool {
|
||||||
if runtime.GOOS == "windows" {
|
if runtime.GOOS == "windows" {
|
||||||
fmt.Printf("windows is not supported")
|
fmt.Println("windows is not supported")
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@ func runAutocomplete(cmd *Command, args []string) bool {
|
||||||
|
|
||||||
var cmdUnautocomplete = &Command{
|
var cmdUnautocomplete = &Command{
|
||||||
Run: runUnautocomplete,
|
Run: runUnautocomplete,
|
||||||
UsageLine: "unautocomplete",
|
UsageLine: "autocomplete.uninstall",
|
||||||
Short: "uninstall autocomplete",
|
Short: "uninstall autocomplete",
|
||||||
Long: `weed autocomplete is uninstalled in the shell.
|
Long: `weed autocomplete is uninstalled in the shell.
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,8 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
var Commands = []*Command{
|
var Commands = []*Command{
|
||||||
|
cmdAutocomplete,
|
||||||
|
cmdUnautocomplete,
|
||||||
cmdBackup,
|
cmdBackup,
|
||||||
cmdBenchmark,
|
cmdBenchmark,
|
||||||
cmdCompact,
|
cmdCompact,
|
||||||
|
@ -36,8 +38,6 @@ var Commands = []*Command{
|
||||||
cmdVersion,
|
cmdVersion,
|
||||||
cmdVolume,
|
cmdVolume,
|
||||||
cmdWebDav,
|
cmdWebDav,
|
||||||
cmdAutocomplete,
|
|
||||||
cmdUnautocomplete,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type Command struct {
|
type Command struct {
|
||||||
|
|
Loading…
Reference in a new issue