standard commit

This commit is contained in:
MDK
2023-08-03 15:25:17 +08:00
parent 38be845348
commit 4fcf28804c
12 changed files with 466 additions and 87 deletions

25
cmd/domain.go Normal file
View File

@@ -0,0 +1,25 @@
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)
}