Common Flags for almost all tests we have
(cmd *cobra.Command)
| 94 | |
| 95 | // Common Flags for almost all tests we have |
| 96 | func 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. |
no outgoing calls
no test coverage detected