diff options
Diffstat (limited to 'complete.go')
| -rw-r--r-- | complete.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/complete.go b/complete.go index bbc214e..3832308 100644 --- a/complete.go +++ b/complete.go @@ -121,18 +121,18 @@ func (a args) DoAutoComplete() error { } if argvpb.PB.IsMatch("cache") { matches, _ := matchCacheFiles() - fmt.Fprintf(argvpb.Stdout, matches) + fmt.Fprintf(argvpb.Stdout, "%s", matches) return nil } if argvpb.PB.IsMatch("mode.--config") { matches, _ := matchModeDirs() - fmt.Fprintf(argvpb.Stdout, matches) + fmt.Fprintf(argvpb.Stdout, "%s", matches) return nil } if argvpb.PB.IsMatch("mode") { err = me.pp.WriteHelpForAutocomplete("", "mode") matches := []string{"jwc", "false"} - fmt.Fprintf(argvpb.Stdout, " "+strings.Join(matches, " ")) + fmt.Fprintf(argvpb.Stdout, "%s", " "+strings.Join(matches, " ")) return nil } if argvpb.PB.GetCmd() == "" { @@ -140,7 +140,7 @@ func (a args) DoAutoComplete() error { matches := []string{"clean", "commit", "merge", "patch", "normal", "pull", "rebuild", "generate", "config", "cache"} matches = append(matches, "show", "add", "fixer", "dev", "verify", "mode", "gui", "whatchanged") matches = append(matches, "--version", "--force", "--all", "--verbose") - fmt.Fprintf(argvpb.Stdout, strings.Join(matches, " ")) + fmt.Fprintf(argvpb.Stdout, "%s", strings.Join(matches, " ")) return nil } err = me.pp.WriteHelpForAutocomplete(argvpb.PB.Partial, argvpb.PB.Real...) |
