(program: Command)
| 33 | type WhoamiCommandOptions = z.infer<typeof WhoamiCommandOptions>; |
| 34 | |
| 35 | export function configureWhoamiCommand(program: Command) { |
| 36 | return commonOptions( |
| 37 | program.command("whoami").description("display the current logged in user and project details") |
| 38 | ).action(async (options) => { |
| 39 | await handleTelemetry(async () => { |
| 40 | await printInitialBanner(false); |
| 41 | await whoAmICommand(options); |
| 42 | }); |
| 43 | }); |
| 44 | } |
| 45 | |
| 46 | export async function whoAmICommand(options: unknown) { |
| 47 | return await wrapCommandAction("whoamiCommand", WhoamiCommandOptions, options, async (opts) => { |
no test coverage detected
searching dependent graphs…