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

Function builder

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

Source from the content-addressed store, hash-verified

20const describe = 'delete a device profile'
21
22const builder = (yargs: Argv): Argv<CommandArgs> =>
23 apiOrganizationCommandBuilder(yargs)
24 .positional('id', { describe: 'device profile id', type: 'string' })
25 .example([
26 ['$0 deviceprofiles:delete', 'prompt for a device profile and delete it'],
27 [
28 '$0 deviceprofiles:delete 63b8c91e-9686-4c43-9afb-fbd9f77e3bb0',
29 'delete the device profile with the specified id',
30 ],
31 ])
32 .epilog(buildEpilog({ command, apiDocs: 'deleteDeviceProfile' }))
33
34const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
35 const command = await apiOrganizationCommand(argv)

Callers

nothing calls this directly

Calls 2

buildEpilogFunction · 0.85

Tested by

no test coverage detected