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

Function executeUpdate

src/commands/apps/update.ts:66–71  ·  view source on GitHub ↗
(_, data)

Source from the content-addressed store, hash-verified

64 const appId = await chooseApp(command, argv.id)
65
66 const executeUpdate: ActionFunction<void, AppUpdateRequest, AppResponse> = async (_, data) => {
67 if (argv.authorize) {
68 await authorizeApp(data, argv.principal, argv.statement)
69 }
70 return command.client.apps.update(appId, data)
71 }
72
73 const config: TableCommonOutputProducer<AppResponse> = { tableFieldDefinitions }
74 await inputAndOutputItem(

Callers 1

update.test.tsFile · 0.50

Calls 1

authorizeAppFunction · 0.85

Tested by

no test coverage detected