mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-22 11:45:54 +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 usergroupDeleteCmd = &cobra.Command{
|
|
Use: "delete [GROUP NAME]",
|
|
Args: cobra.ExactArgs(1),
|
|
Short: "Delete a usergroup",
|
|
Long: `Delete a usergroup`,
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
functions.DeleteUsergroup(args[0])
|
|
fmt.Println("Success")
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(usergroupDeleteCmd)
|
|
}
|