(parentCmd *cobra.Command)
| 43 | ) |
| 44 | |
| 45 | func initPingCmd(parentCmd *cobra.Command) { |
| 46 | addCommonFlags(pingCmd) |
| 47 | pingCmd.Flags().IntVarP(&pingLimit, "limit", "L", 1, "The maximum number of nodes to use") |
| 48 | pingCmd.Flags().BoolVarP(&pingIpv6, "ipv6", "6", false, "Use IPv6") |
| 49 | parentCmd.AddCommand(pingCmd) |
| 50 | } |
| 51 | |
| 52 | func runPing(c *perfops.Client, target, from string, nodeIDs []int, limit int, ipv6 bool) error { |
| 53 | ctx := context.Background() |