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

Function builder

src/commands/organizations/current.ts:27–39  ·  view source on GitHub ↗
(yargs: Argv)

Source from the content-addressed store, hash-verified

25const describe = 'get the currently active organization'
26
27export const builder = (yargs: Argv): Argv<CommandArgs> =>
28 formatAndWriteItemBuilder(apiOrganizationCommandBuilder(yargs))
29 .example([
30 [
31 '$0 organizations:current',
32 'display the currently active organization',
33 ],
34 [
35 '$0 organizations:current --profile org2',
36 'display the currently active organization for the profile "org2',
37 ],
38 ])
39 .epilog(buildEpilog({ command }))
40
41const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => {
42 const command = await apiOrganizationCommand(argv)

Callers

nothing calls this directly

Calls 2

buildEpilogFunction · 0.85

Tested by

no test coverage detected