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

Function handler

src/commands/apps/authorize.ts:44–49  ·  view source on GitHub ↗
(argv: ArgumentsCamelCase<CommandArgs>)

Source from the content-addressed store, hash-verified

42 }))
43
44const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
45 await smartThingsCommand(argv)
46
47 const message = await addPermission(argv.arn, argv.principal, argv.statement)
48 console.log(message)
49}
50
51const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler }
52export default cmd

Callers

nothing calls this directly

Calls 2

smartThingsCommandFunction · 0.85
addPermissionFunction · 0.85

Tested by

no test coverage detected