(yargs: Argv)
| 17 | const describe = 'delete a mode' |
| 18 | |
| 19 | const builder = (yargs: Argv): Argv<CommandArgs> => |
| 20 | apiCommandBuilder(yargs) |
| 21 | .positional('id', { describe: 'mode id', type: 'string' }) |
| 22 | .option('location', { alias: 'l', describe: 'a specific location to query', type: 'string' }) |
| 23 | .example([ |
| 24 | ['$0 locations:modes:delete', 'choose the mode to delete from a list'], |
| 25 | [ |
| 26 | '$0 locations:modes:delete --location 5dfd6626-ab1d-42da-bb76-90def3153998', |
| 27 | 'choose the mode to delete from a list of modes in the specified location', |
| 28 | ], |
| 29 | [ |
| 30 | '$0 locations:modes:delete 636169e4-8b9f-4438-a941-953b0d617231', |
| 31 | 'delete the mode with the specified id', |
| 32 | ], |
| 33 | ]) |
| 34 | .epilog(buildEpilog({ command, apiDocs: 'deleteMode' })) |
| 35 | |
| 36 | |
| 37 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
nothing calls this directly
no test coverage detected