Execute executes the root command.
()
| 70 | |
| 71 | // Execute executes the root command. |
| 72 | func Execute() error { |
| 73 | initRootCmd() |
| 74 | initLatencyCmd(rootCmd) |
| 75 | initMTRCmd(rootCmd) |
| 76 | initPingCmd(rootCmd) |
| 77 | initTracerouteCmd(rootCmd) |
| 78 | initDNSPerfCmd(rootCmd) |
| 79 | initDNSResolveCmd(rootCmd) |
| 80 | initCurlCmd(rootCmd) |
| 81 | initCreditsCmd(rootCmd) |
| 82 | initListCmd(rootCmd) |
| 83 | return rootCmd.Execute() |
| 84 | } |
| 85 | |
| 86 | func initRootCmd() { |
| 87 | cobra.OnInitialize(initConfig) |
no test coverage detected