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

Function builder

src/commands/locations/modes/delete.ts:19–34  ·  view source on GitHub ↗
(yargs: Argv)

Source from the content-addressed store, hash-verified

17const describe = 'delete a mode'
18
19const builder = (yargs: Argv): Argv<CommandArgs> =>
20 apiCommandBuilder(yargs)
21 .positional('id', { describe: 'mode id', type: 'string' })
22 .option('location', { alias: 'l', describe: 'a specific location to query', type: 'string' })
23 .example([
24 ['$0 locations:modes:delete', 'choose the mode to delete from a list'],
25 [
26 '$0 locations:modes:delete --location 5dfd6626-ab1d-42da-bb76-90def3153998',
27 'choose the mode to delete from a list of modes in the specified location',
28 ],
29 [
30 '$0 locations:modes:delete 636169e4-8b9f-4438-a941-953b0d617231',
31 'delete the mode with the specified id',
32 ],
33 ])
34 .epilog(buildEpilog({ command, apiDocs: 'deleteMode' }))
35
36
37const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {

Callers

nothing calls this directly

Calls 2

apiCommandBuilderFunction · 0.85
buildEpilogFunction · 0.85

Tested by

no test coverage detected