mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 08:47:35 +08:00
21 lines
434 B
Go
21 lines
434 B
Go
package dns
|
|
|
|
import (
|
|
"github.com/gravitl/netmaker/cli/functions"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var dnsDeleteCmd = &cobra.Command{
|
|
Use: "delete [NETWORK NAME] [DOMAIN NAME]",
|
|
Args: cobra.ExactArgs(2),
|
|
Short: "Delete a DNS entry",
|
|
Long: `Delete a DNS entry`,
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
functions.PrettyPrint(functions.DeleteDNS(args[0], args[1]))
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(dnsDeleteCmd)
|
|
}
|