(argv: ArgumentsCamelCase<CommandArgs>)
| 55 | .epilog(buildEpilog({ command, apiDocs: ['listScenes'] })) |
| 56 | |
| 57 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 58 | const command = await apiCommand(argv) |
| 59 | |
| 60 | const config: OutputItemOrListConfig<SceneSummary> = { |
| 61 | primaryKeyName: 'sceneId', |
| 62 | sortKeyName: 'sceneName', |
| 63 | tableFieldDefinitions, |
| 64 | } |
| 65 | const options: SceneListOptions = { |
| 66 | locationId: argv.location, |
| 67 | } |
| 68 | |
| 69 | await outputItemOrList<SceneSummary, SceneSummary>(command, config, argv.idOrIndex, |
| 70 | () => command.client.scenes.list(options), |
| 71 | id => command.client.scenes.get(id)) |
| 72 | } |
| 73 | |
| 74 | const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler } |
| 75 | export default cmd |
nothing calls this directly
no test coverage detected