(yargs: Argv)
| 20 | const describe = 'delete an installed app' |
| 21 | |
| 22 | const builder = (yargs: Argv): Argv<CommandArgs> => |
| 23 | apiCommandBuilder(yargs) |
| 24 | .option('location', { |
| 25 | alias: 'l', |
| 26 | describe: 'if prompting for an installed app, include only installed apps in the specified location(s)', |
| 27 | type: 'string', |
| 28 | array: true, |
| 29 | }) |
| 30 | .option('verbose', |
| 31 | { alias: 'v', describe: 'include location name in output', type: 'boolean', default: false }) |
| 32 | .positional('id', { describe: 'installed app id', type: 'string' }) |
| 33 | .example([ |
| 34 | ['$0 installedapps:delete', 'choose the installed app to delete from a list'], |
| 35 | [ |
| 36 | '$0 installedapps:delete 5dfd6626-ab1d-42da-bb76-90def3153998', |
| 37 | 'delete the installed app with the specified id', |
| 38 | ], |
| 39 | ]) |
| 40 | .epilog(buildEpilog({ command, apiDocs: 'deleteInstallation' })) |
| 41 | |
| 42 | |
| 43 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
nothing calls this directly
no test coverage detected