From eb65009ae20dfc7115133b46cdf3846ee54ec666 Mon Sep 17 00:00:00 2001 From: MDK Date: Sat, 21 Oct 2023 18:53:38 +0800 Subject: query command added --- cmd/domain.go | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 cmd/domain.go (limited to 'cmd/domain.go') diff --git a/cmd/domain.go b/cmd/domain.go deleted file mode 100644 index 85a7644..0000000 --- a/cmd/domain.go +++ /dev/null @@ -1,25 +0,0 @@ -package cmd - -import ( - "github.com/spf13/cobra" -) - -var input string -var output string -var domainCmd = &cobra.Command{ - Use: "domain", - Short: "query the ip and nameserver information", - Long: "query the ip and nameserver information", - Run: getDomainInfo, -} - -func getDomainInfo(cmd *cobra.Command, args []string) { - -} - -func init() { - domainCmd.Flags().StringVarP(&input, "input", "i", "", "") - domainCmd.Flags().StringVarP(&output, "output", "o", "", "") - domainCmd.MarkFlagsRequiredTogether("input", "output") - rootCmd.AddCommand(domainCmd) -} -- cgit v1.2.3