MCPcopy Create free account
hub / github.com/ProspectOne/perfops-cli / initPingCmd

Function initPingCmd

cmd/ping.go:45–50  ·  view source on GitHub ↗
(parentCmd *cobra.Command)

Source from the content-addressed store, hash-verified

43)
44
45func 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
52func runPing(c *perfops.Client, target, from string, nodeIDs []int, limit int, ipv6 bool) error {
53 ctx := context.Background()

Callers 2

ExecuteFunction · 0.85
TestInitPingCmdFunction · 0.85

Calls 1

addCommonFlagsFunction · 0.85

Tested by 1

TestInitPingCmdFunction · 0.68