MCPcopy Index your code
hub / github.com/SmartThingsCommunity/smartthings-cli / handler

Function handler

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

Source from the content-addressed store, hash-verified

40 .epilog(buildEpilog({ command, apiDocs: ['updateAppSettings'] }))
41
42const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
43 const command = await apiCommand(argv)
44 const appId = await chooseApp(command, argv.id)
45 await inputAndOutputItem(
46 command,
47 { buildTableOutput: (data: AppSettingsResponse) => buildTableOutput(command.tableGenerator, data) },
48 (_, data: AppSettingsRequest) => command.client.apps.updateSettings(appId, data),
49 )
50}
51
52const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler }
53export default cmd

Callers

nothing calls this directly

Calls 3

apiCommandFunction · 0.85
inputAndOutputItemFunction · 0.85
buildTableOutputFunction · 0.50

Tested by

no test coverage detected