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

Function builder

src/commands/capabilities/delete.ts:21–30  ·  view source on GitHub ↗
(yargs: Argv)

Source from the content-addressed store, hash-verified

19const describe = 'delete a capability'
20
21const builder = (yargs: Argv): Argv<CommandArgs> =>
22 capabilityIdBuilder(apiOrganizationCommandBuilder(yargs))
23 .example([
24 ['$0 capabilities:delete', 'prompt for a capability and delete it'],
25 [
26 '$0 capabilities:delete cathappy12345.myCapability',
27 'delete the capability with the specified id',
28 ],
29 ])
30 .epilog(buildEpilog({ command, apiDocs: 'deleteCapability' }))
31
32const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
33 const command = await apiOrganizationCommand(argv)

Callers

nothing calls this directly

Calls 3

capabilityIdBuilderFunction · 0.85
buildEpilogFunction · 0.85

Tested by

no test coverage detected