checkAdminServerUpdateSyntax - validate all the passed arguments
(ctx *cli.Context)
| 110 | |
| 111 | // checkAdminServerUpdateSyntax - validate all the passed arguments |
| 112 | func checkAdminServerUpdateSyntax(ctx *cli.Context) { |
| 113 | if len(ctx.Args()) == 0 || len(ctx.Args()) > 2 { |
| 114 | showCommandHelpAndExit(ctx, 1) // last argument is exit code |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | func mainAdminServerUpdate(ctx *cli.Context) error { |
| 119 | // Validate serivce update syntax. |
no test coverage detected