type FlagExposer …
func ActsAsRootCommand(cmd *cobra.Command, filters []string, groups ...CommandGroup) FlagExposer { … }
func UseOptionsTemplates(cmd *cobra.Command) { … }
type templater …
func (templater *templater) FlagErrorFunc(exposedFlags ...string) func(*cobra.Command, error) error { … }
func (templater *templater) ExposeFlags(cmd *cobra.Command, flags ...string) FlagExposer { … }
func (templater *templater) HelpFunc() func(*cobra.Command, []string) { … }
func (templater *templater) UsageFunc(exposedFlags ...string) func(*cobra.Command) error { … }
func (templater *templater) templateFuncs(exposedFlags ...string) template.FuncMap { … }
func (templater *templater) cmdGroups(c *cobra.Command, all []*cobra.Command) []CommandGroup { … }
func (t *templater) cmdGroupsString(c *cobra.Command) string { … }
func (t *templater) rootCmdName(c *cobra.Command) string { … }
func (t *templater) reverseParentsNames(c *cobra.Command) []string { … }
func (t *templater) isRootCmd(c *cobra.Command) bool { … }
func (t *templater) parents(c *cobra.Command) []*cobra.Command { … }
func (t *templater) rootCmd(c *cobra.Command) *cobra.Command { … }
func (t *templater) optionsCmdFor(c *cobra.Command) string { … }
func (t *templater) usageLine(c *cobra.Command) string { … }
func flagsUsages(f *flag.FlagSet) (string, error) { … }
func getFlagFormat(f *flag.Flag) string { … }
func rpad(s string, padding int) string { … }
func appendIfNotPresent(s, stringToAppend string) string { … }
func flagsNotIntersected(l *flag.FlagSet, r *flag.FlagSet) *flag.FlagSet { … }
func visibleFlags(l *flag.FlagSet) *flag.FlagSet { … }
func filter(cmds []*cobra.Command, names ...string) []*cobra.Command { … }