mirror of https://github.com/spf13/cobra.git
zsh-completion: removed forgotten function.
This commit is contained in:
parent
df12a0a249
commit
461a39d5b9
|
@ -115,10 +115,6 @@ func extractFlags(c *Command) []*pflag.Flag {
|
||||||
return flags
|
return flags
|
||||||
}
|
}
|
||||||
|
|
||||||
func simpleFlag(p *pflag.Flag) bool {
|
|
||||||
return p.Name == "" || p.Shorthand == ""
|
|
||||||
}
|
|
||||||
|
|
||||||
// genFlagEntryForZshArguments returns an entry that matches _arguments
|
// genFlagEntryForZshArguments returns an entry that matches _arguments
|
||||||
// zsh-completion parameters. It's too complicated to generate in a template.
|
// zsh-completion parameters. It's too complicated to generate in a template.
|
||||||
func genFlagEntryForZshArguments(f *pflag.Flag) string {
|
func genFlagEntryForZshArguments(f *pflag.Flag) string {
|
||||||
|
|
Loading…
Reference in New Issue