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

Function getServiceInfo

src/commands/dataconnect-execute.ts:211–230  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

209 }
210
211 async function getServiceInfo(): Promise<ServiceInfo> {
212 return pickOneService(
213 projectId,
214 options.config,
215 serviceId || undefined,
216 locationId || undefined,
217 ).catch((e: unknown) => {
218 if (!(e instanceof FirebaseError)) {
219 return Promise.reject(e);
220 }
221 if (!serviceId) {
222 e = new FirebaseError(
223 e.message +
224 `\nHint: Try specifying the ${clc.yellow("--service <serviceId>")} option.`,
225 { ...e, original: e },
226 );
227 }
228 return Promise.reject(e);
229 });
230 }
231
232 async function pickConnectorDir(): Promise<string> {
233 const serviceInfo = await getServiceInfo();

Callers 2

pickConnectorDirFunction · 0.85

Calls 1

pickOneServiceFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…