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

Function handler

src/commands/edge/channels/invites.ts:55–72  ·  view source on GitHub ↗
(argv: ArgumentsCamelCase<CommandArgs>)

Source from the content-addressed store, hash-verified

53 .epilog(buildEpilog({ command }))
54
55const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
56 const command = edgeCommand(await apiCommand(argv))
57
58 const config: OutputItemOrListConfig<Invitation> = {
59 primaryKeyName: 'id',
60 sortKeyName: 'id',
61 listTableFieldDefinitions,
62 tableFieldDefinitions,
63 }
64
65 await outputItemOrList<Invitation>(
66 command,
67 config,
68 argv.idOrIndex,
69 buildListFunction(command, argv.channel),
70 id => command.edgeClient.invites.get(id),
71 )
72}
73
74const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler }
75export default cmd

Callers

nothing calls this directly

Calls 3

edgeCommandFunction · 0.85
apiCommandFunction · 0.85
buildListFunctionFunction · 0.85

Tested by

no test coverage detected