mirror of
				https://github.com/gravitl/netmaker.git
				synced 2025-10-31 04:06:37 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			384 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			23 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)
 | |
| }
 | 
