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

Function handler

src/commands/apps/oauth.ts:36–45  ·  view source on GitHub ↗
(argv: ArgumentsCamelCase<CommandArgs>)

Source from the content-addressed store, hash-verified

34 .epilog(buildEpilog({ command, apiDocs: ['getAppOauth'] }))
35
36const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
37 const command = await apiCommand(argv)
38
39 const id = await chooseApp(command, argv.idOrIndex, { allowIndex: true })
40 await outputItem(
41 command,
42 { tableFieldDefinitions: oauthTableFieldDefinitions },
43 () => command.client.apps.getOauth(id),
44 )
45}
46
47const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler }
48export default cmd

Callers

nothing calls this directly

Calls 2

apiCommandFunction · 0.85
outputItemFunction · 0.85

Tested by

no test coverage detected