standard commit
This commit is contained in:
25
cmd/domain.go
Normal file
25
cmd/domain.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user