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

Function builder

src/commands/virtualdevices/delete.ts:18–28  ·  view source on GitHub ↗
(yargs: Argv)

Source from the content-addressed store, hash-verified

16const describe = 'delete a virtual device'
17
18const builder = (yargs: Argv): Argv<CommandArgs> =>
19 apiCommandBuilder(yargs)
20 .positional('id', { describe: 'device id', type: 'string' })
21 .example([
22 ['$0 virtualdevices:delete', 'choose the device to delete from a list'],
23 [
24 '$0 virtualdevices:delete 43daec4d-f2c6-4bc3-9df7-50ed1012c137',
25 'delete the device with the specified id',
26 ],
27 ])
28 .epilog(buildEpilog({ command }))
29
30const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
31 const command = await apiCommand(argv)

Callers

nothing calls this directly

Calls 2

apiCommandBuilderFunction · 0.85
buildEpilogFunction · 0.85

Tested by

no test coverage detected