MCPcopy Create free account
hub / github.com/SmartThingsCommunity/smartthings-cli / builder

Function builder

src/commands/installedapps/delete.ts:22–40  ·  view source on GitHub ↗
(yargs: Argv)

Source from the content-addressed store, hash-verified

20const describe = 'delete an installed app'
21
22const 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
43const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {

Callers

nothing calls this directly

Calls 2

apiCommandBuilderFunction · 0.85
buildEpilogFunction · 0.85

Tested by

no test coverage detected