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

Function parseUnsetArgs

src/functionsConfig.ts:226–245  ·  view source on GitHub ↗
(args: string[])

Source from the content-addressed store, hash-verified

224}
225
226export function parseUnsetArgs(args: string[]): ParsedArg[] {
227 const parsed: ParsedArg[] = [];
228 let splitArgs: string[] = [];
229 for (const arg of args) {
230 splitArgs = Array.from(new Set([...splitArgs, ...arg.split(",")]));
231 }
232
233 for (const key of splitArgs) {
234 const id = keyToIds(key);
235 if (isReservedNamespace(id)) {
236 throw new FirebaseError("Cannot unset reserved namespace " + clc.bold(id.config));
237 }
238
239 parsed.push({
240 configId: id.config,
241 varId: id.variable,
242 });
243 }
244 return parsed;
245}

Callers

nothing calls this directly

Calls 3

keyToIdsFunction · 0.85
isReservedNamespaceFunction · 0.85
fromMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…