(argv: ArgumentsCamelCase<CommandArgs>)
| 41 | |
| 42 | |
| 43 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 44 | const command = await apiCommand(argv) |
| 45 | |
| 46 | const listOptions: InstalledAppListOptions = { |
| 47 | locationId: argv.location, |
| 48 | } |
| 49 | const chooseFunction = chooseInstalledAppFn({ listOptions, verbose: argv.verbose }) |
| 50 | const id = await chooseFunction(command, argv.id, { promptMessage: 'Select an installed app to delete.' }) |
| 51 | |
| 52 | await command.client.installedApps.delete(id) |
| 53 | console.log(`Installed app ${id} deleted.`) |
| 54 | } |
| 55 | |
| 56 | const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler } |
| 57 | export default cmd |
nothing calls this directly
no test coverage detected