(argv: ArgumentsCamelCase<CommandArgs>)
| 53 | .epilog(buildEpilog({ command })) |
| 54 | |
| 55 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 56 | const command = edgeCommand(await apiCommand(argv)) |
| 57 | |
| 58 | const config: OutputItemOrListConfig<Invitation> = { |
| 59 | primaryKeyName: 'id', |
| 60 | sortKeyName: 'id', |
| 61 | listTableFieldDefinitions, |
| 62 | tableFieldDefinitions, |
| 63 | } |
| 64 | |
| 65 | await outputItemOrList<Invitation>( |
| 66 | command, |
| 67 | config, |
| 68 | argv.idOrIndex, |
| 69 | buildListFunction(command, argv.channel), |
| 70 | id => command.edgeClient.invites.get(id), |
| 71 | ) |
| 72 | } |
| 73 | |
| 74 | const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler } |
| 75 | export default cmd |
nothing calls this directly
no test coverage detected