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

Function handler

src/commands/schema/authorize.ts:41–48  ·  view source on GitHub ↗
(argv: ArgumentsCamelCase<CommandArgs>)

Source from the content-addressed store, hash-verified

39 }))
40
41const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
42 await smartThingsCommand(argv)
43
44 // arn is marked as required so will not be null here
45 // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
46 const message = await addSchemaPermission(argv.arn!, argv.principal, argv.statement)
47 console.log(message)
48}
49
50const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler }
51export default cmd

Callers

nothing calls this directly

Calls 2

smartThingsCommandFunction · 0.85
addSchemaPermissionFunction · 0.85

Tested by

no test coverage detected