(yargs: Argv)
| 18 | const describe = 'delete a location' |
| 19 | |
| 20 | const builder = (yargs: Argv): Argv<CommandArgs> => |
| 21 | apiCommandBuilder(yargs) |
| 22 | .positional('id', { describe: 'location id', type: 'string' }) |
| 23 | .example([ |
| 24 | ['$0 locations:delete', 'choose the location to delete from a list'], |
| 25 | [ |
| 26 | '$0 locations:delete 43daec4d-f2c6-4bc3-9df7-50ed1012c137', |
| 27 | 'delete the location with the specified id', |
| 28 | ], |
| 29 | ]) |
| 30 | .epilog(buildEpilog({ command, apiDocs: 'deleteLocation' })) |
| 31 | |
| 32 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 33 | const command = await apiCommand(argv) |
nothing calls this directly
no test coverage detected