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

Function builder

src/commands/logout.ts:14–20  ·  view source on GitHub ↗
(yargs: Argv)

Source from the content-addressed store, hash-verified

12const describe = 'force login next time the specified (or default) profile is used'
13
14const builder = (yargs: Argv): Argv<CommandArgs> =>
15 apiCommandBuilder(yargs)
16 .example([
17 ['$0', 'log out of default profile'],
18 ['$0 --profile hub2', 'log out of profile named "hub2"'],
19 ])
20 .epilog(buildEpilog({ command }))
21
22const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
23 const command = await apiCommand(argv)

Callers

nothing calls this directly

Calls 2

apiCommandBuilderFunction · 0.85
buildEpilogFunction · 0.85

Tested by

no test coverage detected