(argv: ArgumentsCamelCase<CommandArgs>)
| 33 | |
| 34 | |
| 35 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 36 | const command = await apiCommand(argv) |
| 37 | |
| 38 | const channelId = await chooseChannelFn({ includeReadOnly: true })( command, argv.channel ) |
| 39 | const hubId = await chooseHub(command, argv.hubId, { useConfigDefault: true }) |
| 40 | |
| 41 | await command.client.channels.enrollHub(channelId, hubId) |
| 42 | |
| 43 | console.log(`${hubId} enrolled in channel ${channelId}`) |
| 44 | } |
| 45 | |
| 46 | const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler } |
| 47 | export default cmd |
nothing calls this directly
no test coverage detected