Skip to content
Myr

Persistent flags should also be used in completions

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Fabiano Franz · committed by spf13 · parent 5c3dc12 · Browse files · 1 file+6 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−0 removed

  • other:+6 added−0 removed

1 file+6 added−0 removed

modified:bash_completions.go+6 added
303 unmodified lines
304 if len(flag.Shorthand) > 0 {305 writeShortFlag(flag, out)306 }307 })308 cmd.InheritedFlags().VisitAll(func(flag *pflag.Flag) {309 writeFlag(flag, out)310 if len(flag.Shorthand) > 0 {311 writeShortFlag(flag, out)312 }313 })314315 fmt.Fprintf(out, "\n")316}317
97 unmodified lines