(args: string[])
| 224 | } |
| 225 | |
| 226 | export 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 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…