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

Function builder

src/commands/schema/regenerate.ts:24–41  ·  view source on GitHub ↗
(yargs: Argv)

Source from the content-addressed store, hash-verified

22const describe = 'regenerate the client id and secret of the Schema App link'
23
24const builder = (yargs: Argv): Argv<CommandArgs> =>
25 outputItemBuilder(apiOrganizationCommandBuilder(yargs))
26 .positional('id', {
27 describe: 'Schema App link id',
28 type: 'string',
29 })
30 .example([
31 ['$0 schema:regenerate', 'prompt for Schema App link and regenerate the client id and secret for it'],
32 [
33 '$0 schema:regenerate 392bcb11-e251-44f3-b58b-17f93015f3aa',
34 'regenerate the client id and secret for for the specified Schema App link',
35 ],
36 ])
37 .epilog(buildEpilog({
38 command,
39 apiDocs: ['generateStOauthCredentials'],
40 formattedNotes: 'The previous values will be invalidated, which may affect existing installations.',
41 }))
42
43const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
44 const command = await apiOrganizationCommand(argv)

Callers

nothing calls this directly

Calls 2

buildEpilogFunction · 0.85

Tested by

no test coverage detected