(yargs: Argv)
| 25 | const describe = 'update a location' |
| 26 | |
| 27 | const builder = (yargs: Argv): Argv<CommandArgs> => |
| 28 | inputAndOutputItemBuilder(apiCommandBuilder(yargs)) |
| 29 | .positional('id', { describe: 'location id', type: 'string' }) |
| 30 | .example([ |
| 31 | [ |
| 32 | '$0 locations:update -i my-location.yaml', |
| 33 | 'prompt for a location and update it using the data in "my-location.yaml"', |
| 34 | ], |
| 35 | [ |
| 36 | '$0 locations:update 392bcb11-e251-44f3-b58b-17f93015f3aa -i my-location.json', |
| 37 | 'update the location with the given id using the data in "my-location.json"', |
| 38 | ], |
| 39 | ]) |
| 40 | .epilog(buildEpilog({ command, apiDocs: 'updateLocation' })) |
| 41 | |
| 42 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 43 | const command = await apiCommand(argv) |
nothing calls this directly
no test coverage detected