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

Function handler

src/commands/locations/delete.ts:32–38  ·  view source on GitHub ↗
(argv: ArgumentsCamelCase<CommandArgs>)

Source from the content-addressed store, hash-verified

30 .epilog(buildEpilog({ command, apiDocs: 'deleteLocation' }))
31
32const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
33 const command = await apiCommand(argv)
34
35 const id = await chooseLocation(command, argv.id)
36 await command.client.locations.delete(id)
37 console.log(`Location ${id} deleted.`)
38}
39
40const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler }
41export default cmd

Callers

nothing calls this directly

Calls 1

apiCommandFunction · 0.85

Tested by

no test coverage detected