cmd/dns.go
// Copyright © 2019 Vyacheslav Akhmetov <iam@itaddict.ru>
package cmd
import (
"github.com/spf13/cobra"
)
// dnsCmd represents the dns command
var dnsCmd = &cobra.Command{
Use: "dns",
Short: "Measuring domain resolve time via DNS resolver",
Long: `Measuring domain resolve time via DNS resolver`,
Run: startMeasurements,
}
func init() {
rootCmd.AddCommand(dnsCmd)
// Here you will define your flags and configuration settings.
// Cobra supports Persistent Flags which will work for this command
// and all subcommands, e.g.:
// dnsCmd.PersistentFlags().String("foo", "", "A help for foo")
// Cobra supports local flags which will only run when this command
// is called directly, e.g.:
// dnsCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle")
}