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

Function handler

src/commands/deviceprofiles/delete.ts:34–40  ·  view source on GitHub ↗
(argv: ArgumentsCamelCase<CommandArgs>)

Source from the content-addressed store, hash-verified

32 .epilog(buildEpilog({ command, apiDocs: 'deleteDeviceProfile' }))
33
34const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
35 const command = await apiOrganizationCommand(argv)
36
37 const id = await chooseDeviceProfile(command, argv.id)
38 await command.client.deviceProfiles.delete(id)
39 console.log(`Device profile ${id} deleted.`)
40}
41
42const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler }
43export default cmd

Callers

nothing calls this directly

Calls 1

apiOrganizationCommandFunction · 0.85

Tested by

no test coverage detected