package group import ( "fmt" "github.com/spf13/cobra" ) var ( // group subcommand arguments flagGroupName string flagGroupType string flagGroupIdNumber int flagGroupMembers string validTypes []string = []string{"app", "unix"} ) func init() { // register group subcommands groupCmd.AddCommand(groupAddCmd, groupDeleteCmd) } func GetGroupCmd() *cobra.Command { return groupCmd } // define group command var groupCmd = &cobra.Command{ Use: "group", Short: "Manage LDAP group resources", Long: `Perform various LDAP operations on group resources.`, Run: func(cmd *cobra.Command, args []string) { fmt.Println("Metaunix.net LDAP tool, group command. Available subcommands are: add, delete") }, }