(yargs: Argv)
| 25 | const describe = 'get the currently active organization' |
| 26 | |
| 27 | export 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 | |
| 41 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 42 | const command = await apiOrganizationCommand(argv) |
nothing calls this directly
no test coverage detected