diff options
| author | Jeff Carr <[email protected]> | 2025-10-27 20:38:36 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-27 20:38:36 -0500 |
| commit | 1fe9716603d5aebc42e63228d9ade30e34ef085a (patch) | |
| tree | ef99316023ffc264fec27d4fec7a101561e36efe /complete.go | |
| parent | 34ecc3bd69f5ed24f507b40c2c4ebc20328e7b05 (diff) | |
fixes for "forge rebuild forge"v0.25.104
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...) |
