type CommandGroup … type CommandGroups … func (g CommandGroups) Add(c *cobra.Command) { … } func (g CommandGroups) Has(c *cobra.Command) bool { … } func AddAdditionalCommands(g CommandGroups, message string, cmds []*cobra.Command) CommandGroups { … }