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

Function handler

src/commands/invites/schema/delete.ts:39–45  ·  view source on GitHub ↗
(argv: ArgumentsCamelCase<CommandArgs>)

Source from the content-addressed store, hash-verified

37 .epilog(buildEpilog({ command }))
38
39const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
40 const command = await apiCommand(argv)
41
42 const id = await chooseSchemaInvitationFn(argv.schemaApp)(command, argv.id)
43 await command.client.invitesSchema.revoke(id)
44 console.log(`Invitation ${id} deletion requested. (This may take a few moments to complete.)`)
45}
46
47const cmd: CommandModule<object, CommandArgs> = { command, describe, builder, handler }
48export default cmd

Callers

nothing calls this directly

Calls 2

apiCommandFunction · 0.85
chooseSchemaInvitationFnFunction · 0.85

Tested by

no test coverage detected