MCPcopy
hub / github.com/triggerdotdev/trigger.dev / configureWhoamiCommand

Function configureWhoamiCommand

packages/cli-v3/src/commands/whoami.ts:35–44  ·  view source on GitHub ↗
(program: Command)

Source from the content-addressed store, hash-verified

33type WhoamiCommandOptions = z.infer<typeof WhoamiCommandOptions>;
34
35export 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
46export async function whoAmICommand(options: unknown) {
47 return await wrapCommandAction("whoamiCommand", WhoamiCommandOptions, options, async (opts) => {

Callers 1

index.tsFile · 0.85

Calls 4

commonOptionsFunction · 0.85
handleTelemetryFunction · 0.85
printInitialBannerFunction · 0.85
whoAmICommandFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…