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

Function builder

src/commands/installedschema/delete.ts:24–42  ·  view source on GitHub ↗
(yargs: Argv)

Source from the content-addressed store, hash-verified

22const describe = 'delete an installed Schema App'
23
24const builder = (yargs: Argv): Argv<CommandArgs> =>
25 apiCommandBuilder(yargs)
26 .positional('id', { describe: 'installed Schema App id', type: 'string' })
27 .option('location', {
28 alias: 'l',
29 describe: 'filter results by location',
30 type: 'string',
31 array: true,
32 })
33 .option('verbose',
34 { alias: 'v', describe: 'include location name in output', type: 'boolean', default: false })
35 .example([
36 ['$0 installedschema:delete', 'choose the installed Schema App to delete from a list'],
37 [
38 '$0 installedschema:delete 5dfd6626-ab1d-42da-bb76-90def3153998',
39 'delete the installed Schema App with the specified id',
40 ],
41 ])
42 .epilog(buildEpilog({ command, apiDocs: 'deleteIsaByIsaId' }))
43
44const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
45 const command = await apiCommand(argv)

Callers

nothing calls this directly

Calls 2

apiCommandBuilderFunction · 0.85
buildEpilogFunction · 0.85

Tested by

no test coverage detected