const BashCompFilenameExt …
const BashCompCustom …
const BashCompOneRequiredFlag …
const BashCompSubdirsInDir …
func writePreamble(buf io.StringWriter, name string) { … }
func writePostscript(buf io.StringWriter, name string) { … }
func writeCommands(buf io.StringWriter, cmd *Command) { … }
func writeFlagHandler(buf io.StringWriter, name string, annotations map[string][]string, cmd *Command) { … }
const cbn …
func writeShortFlag(buf io.StringWriter, flag *pflag.Flag, cmd *Command) { … }
func writeFlag(buf io.StringWriter, flag *pflag.Flag, cmd *Command) { … }
func writeLocalNonPersistentFlag(buf io.StringWriter, flag *pflag.Flag) { … }
func prepareCustomAnnotationsForFlags(cmd *Command) { … }
func writeFlags(buf io.StringWriter, cmd *Command) { … }
func writeRequiredFlag(buf io.StringWriter, cmd *Command) { … }
func writeRequiredNouns(buf io.StringWriter, cmd *Command) { … }
func writeCmdAliases(buf io.StringWriter, cmd *Command) { … }
func writeArgAliases(buf io.StringWriter, cmd *Command) { … }
func gen(buf io.StringWriter, cmd *Command) { … }
func (c *Command) GenBashCompletion(w io.Writer) error { … }
func nonCompletableFlag(flag *pflag.Flag) bool { … }
func (c *Command) GenBashCompletionFile(filename string) error { … }