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

Function handler

src/commands/locations/update.ts:42–48  ·  view source on GitHub ↗
(argv: ArgumentsCamelCase<CommandArgs>)

Source from the content-addressed store, hash-verified

40 .epilog(buildEpilog({ command, apiDocs: 'updateLocation' }))
41
42const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
43 const command = await apiCommand(argv)
44
45 const id = await chooseLocation(command, argv.id)
46 await inputAndOutputItem<LocationUpdate, Location>(command, { tableFieldDefinitions },
47 (_, location) => command.client.locations.update(id, location))
48}
49
50const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler }
51export default cmd

Callers

nothing calls this directly

Calls 1

apiCommandFunction · 0.85

Tested by

no test coverage detected