(argv: ArgumentsCamelCase<CommandArgs>)
| 55 | })) |
| 56 | |
| 57 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 58 | const command = await apiCommand(argv) |
| 59 | |
| 60 | const config = { |
| 61 | buildTableOutput: (data: PresentationDevicePresentation) => buildTableOutput(command.tableGenerator, data), |
| 62 | } |
| 63 | await outputItem( |
| 64 | command, |
| 65 | config, |
| 66 | // presentationId is required in the `positional` argument above so it will always be set here. |
| 67 | // eslint-disable-next-line @typescript-eslint/no-non-null-assertion |
| 68 | () => command.client.presentation.getPresentation(argv.presentationId!, argv.manufacturerName)) |
| 69 | } |
| 70 | |
| 71 | const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler } |
| 72 | export default cmd |
nothing calls this directly
no test coverage detected