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

Function handler

src/commands/locations/create.ts:35–40  ·  view source on GitHub ↗
(argv: ArgumentsCamelCase<CommandArgs>)

Source from the content-addressed store, hash-verified

33 .epilog(buildEpilog({ command, apiDocs: 'createLocation' }))
34
35const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
36 const command = await apiCommand(argv)
37
38 await inputAndOutputItem(command, { tableFieldDefinitions },
39 (_, input: LocationCreate) => command.client.locations.create(input))
40}
41
42const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler }
43export default cmd

Callers

nothing calls this directly

Calls 2

apiCommandFunction · 0.85
inputAndOutputItemFunction · 0.85

Tested by

no test coverage detected