mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 08:47:35 +08:00
22 lines
569 B
Go
22 lines
569 B
Go
package node
|
|
|
|
import (
|
|
"github.com/gravitl/netmaker/cli/functions"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var nodeDeleteIngressCmd = &cobra.Command{
|
|
Use: "delete_remote_access_gateway [NETWORK NAME] [NODE ID]",
|
|
Args: cobra.ExactArgs(2),
|
|
Short: "Delete Remote Access Gateway role from a Node",
|
|
Long: `Delete Remote Access Gateway role from a Node`,
|
|
Aliases: []string{"delete_rag"},
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
functions.PrettyPrint(functions.DeleteIngress(args[0], args[1]))
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(nodeDeleteIngressCmd)
|
|
}
|