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

Function builder

src/commands/config/reset.ts:20–30  ·  view source on GitHub ↗
(yargs: Argv)

Source from the content-addressed store, hash-verified

18const describe = 'clear saved answers to questions'
19
20const builder = (yargs: Argv): Argv<CommandArgs> =>
21 smartThingsCommandBuilder(yargs)
22 .example([
23 ['$0 config:reset', 'reset cli-managed configuration for the default profile'],
24 ['$0 config:reset --profile hub2', 'reset cli-managed configuration for the profile named "hub2"'],
25 ])
26 .epilog(buildEpilog({
27 command,
28 notes: 'The CLI will occasionally ask you if you want it to remember the answer to a question, such as ' +
29 '"Which hub do you want to use?" You can use this command to clear those answers.',
30 }))
31
32const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
33 const command = await smartThingsCommand(argv)

Callers

nothing calls this directly

Calls 2

buildEpilogFunction · 0.85

Tested by

no test coverage detected