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

Function handler

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

Source from the content-addressed store, hash-verified

34 .epilog(buildEpilog({ command, apiDocs: ['getAppSettings'] }))
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
41 await outputItem(
42 command,
43 { buildTableOutput: appSettings => buildTableOutput(command.tableGenerator, appSettings) },
44 () => command.client.apps.getSettings(id),
45 )
46}
47
48const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler }
49export default cmd

Callers

nothing calls this directly

Calls 3

apiCommandFunction · 0.85
outputItemFunction · 0.85
buildTableOutputFunction · 0.70

Tested by

no test coverage detected