checkAdminPrometheusSyntax - validate all the passed arguments
(ctx *cli.Context)
| 176 | |
| 177 | // checkAdminPrometheusSyntax - validate all the passed arguments |
| 178 | func checkAdminPrometheusSyntax(ctx *cli.Context) { |
| 179 | if len(ctx.Args()) == 0 || len(ctx.Args()) > 2 { |
| 180 | showCommandHelpAndExit(ctx, 1) // last argument is exit code |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | func generatePrometheusConfig(ctx *cli.Context) error { |
| 185 | // Get the alias parameter from cli |
no test coverage detected