This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
modikai-dtool/cmd/domain.go
2023-08-03 15:25:17 +08:00

26 lines
549 B
Go

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)
}