MCPcopy Index your code
hub / github.com/ProspectOne/perfops-cli / addCommonFlags

Function addCommonFlags

cmd/root.go:96–100  ·  view source on GitHub ↗

Common Flags for almost all tests we have

(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

94
95// Common Flags for almost all tests we have
96func addCommonFlags(cmd *cobra.Command) {
97 cmd.PersistentFlags().StringVarP(&from, "from", "F", "", "A continent, region (e.g eastern europe), country, US state or city")
98 cmd.PersistentFlags().IntSliceVarP(&nodeIDs, "nodeid", "N", []int{}, "A comma separated list of node IDs to run a test from")
99 cmd.PersistentFlags().BoolVarP(&outputJSON, "json", "J", false, "Print the result of a command in JSON format")
100}
101
102// newPerfOpsClient returns a perfops.Client object initialized with the
103// API key.

Callers 7

initMTRCmdFunction · 0.85
initPingCmdFunction · 0.85
initDNSPerfCmdFunction · 0.85
initTracerouteCmdFunction · 0.85
initLatencyCmdFunction · 0.85
initCurlCmdFunction · 0.85
initDNSResolveCmdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected