MCPcopy Create free account
hub / github.com/firebase/firebase-tools / resolveProjectIdentifiers

Method resolveProjectIdentifiers

src/command.ts:446–459  ·  view source on GitHub ↗
(options: {
    project?: string;
    projectId?: string;
    projectNumber?: string;
  })

Source from the content-addressed store, hash-verified

444 }
445
446 private async resolveProjectIdentifiers(options: {
447 project?: string;
448 projectId?: string;
449 projectNumber?: string;
450 }): Promise<void> {
451 if (options.project?.match(/^\d+$/)) {
452 await requireAuth(options);
453 const { projectId, projectNumber } = await getProject(options.project);
454 options.projectId = projectId;
455 options.projectNumber = projectNumber;
456 } else {
457 options.projectId = options.project;
458 }
459 }
460
461 /**
462 * Returns an async function that calls the pre-action hooks and then the

Callers 1

prepareMethod · 0.95

Calls 3

requireAuthFunction · 0.90
getProjectFunction · 0.90
matchMethod · 0.65

Tested by

no test coverage detected