(argv: ArgumentsCamelCase<CommandArgs>)
| 43 | .epilog(buildEpilog({ command, apiDocs: ['getChannelDrivers', 'getDriverChannel'] })) |
| 44 | |
| 45 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 46 | const command = await apiCommand(argv) |
| 47 | |
| 48 | const config: OutputListConfig<DriverChannelDetailsWithName> = { |
| 49 | primaryKeyName: 'channelId', |
| 50 | sortKeyName: 'name', |
| 51 | listTableFieldDefinitions: ['name', 'driverId', 'version', 'createdDate', 'lastModifiedDate'], |
| 52 | } |
| 53 | |
| 54 | const channelId = await chooseChannelFn({ includeReadOnly: true })( |
| 55 | command, |
| 56 | argv.idOrIndex, |
| 57 | { allowIndex: true, useConfigDefault: true }, |
| 58 | ) |
| 59 | |
| 60 | await outputList(command, config, () => listAssignedDriversWithNames(command.client, channelId)) |
| 61 | } |
| 62 | |
| 63 | const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler } |
| 64 | export default cmd |
nothing calls this directly
no test coverage detected