minor changes

This commit is contained in:
Chris Lu 2021-08-02 11:49:40 -07:00
parent 0ca641f33c
commit fe60c6ef9a
2 changed files with 5 additions and 5 deletions

View file

@ -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.

View file

@ -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 {