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

Function handler

src/commands/devicepreferences/create.ts:192–198  ·  view source on GitHub ↗
(argv: ArgumentsCamelCase<CommandArgs>)

Source from the content-addressed store, hash-verified

190}
191
192const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
193 const command = await apiOrganizationCommand(argv)
194
195 await inputAndOutputItem(command, { tableFieldDefinitions },
196 (_, input: DevicePreferenceCreate) => command.client.devicePreferences.create(input),
197 userInputProcessor(getInputFromUser))
198}
199
200const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler }
201export default cmd

Callers

nothing calls this directly

Calls 3

apiOrganizationCommandFunction · 0.85
inputAndOutputItemFunction · 0.85
userInputProcessorFunction · 0.85

Tested by

no test coverage detected