mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-06 03:46:02 +08:00
23 lines
443 B
Go
23 lines
443 B
Go
package usergroup
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/gravitl/netmaker/cli/functions"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var usergroupCreateCmd = &cobra.Command{
|
|
Use: "create [GROUP NAME]",
|
|
Args: cobra.ExactArgs(1),
|
|
Short: "Create a usergroup",
|
|
Long: `Create a usergroup`,
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
functions.CreateUsergroup(args[0])
|
|
fmt.Println("Success")
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(usergroupCreateCmd)
|
|
}
|