mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-12 08:04:25 +08:00
22 lines
384 B
Go
22 lines
384 B
Go
package dns
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/gravitl/netmaker/cli/functions"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var dnsPushCmd = &cobra.Command{
|
|
Use: "push",
|
|
Args: cobra.NoArgs,
|
|
Short: "Push latest DNS entries",
|
|
Long: `Push latest DNS entries`,
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
fmt.Println(*functions.PushDNS())
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(dnsPushCmd)
|
|
}
|