(yargs: Argv)
| 34 | const describe = 'get history by location' |
| 35 | |
| 36 | const builder = (yargs: Argv): Argv<CommandArgs> => |
| 37 | historyBuilder(buildOutputFormatterBuilder(apiCommandBuilder(yargs))) |
| 38 | .positional('id-or-index', { describe: 'the location id or number in list', type: 'string' }) |
| 39 | .example([ |
| 40 | ['$0 locations:history', 'prompt for a location and display history for it'], |
| 41 | ['$0 locations:history 2', 'display history for location listed second in output of locations command'], |
| 42 | ['$0 locations:history 92f9920a-7629-40e3-8fdc-14924413897f', 'display history for location by id'], |
| 43 | ]) |
| 44 | .epilog(buildEpilog({ command })) |
| 45 | |
| 46 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 47 | const command = await apiCommand(argv) |
nothing calls this directly
no test coverage detected