(variables: string[] | undefined, additionalEnvironment?: Record<string, string | string[]>)
| 460 | } |
| 461 | |
| 462 | export function resolveVariablesArray(variables: string[] | undefined, additionalEnvironment?: Record<string, string | string[]>): string[] { |
| 463 | let result: string[] = []; |
| 464 | if (variables) { |
| 465 | variables.forEach(variable => { |
| 466 | const variablesResolved: string[] = []; |
| 467 | const variableResolved: string = resolveVariables(variable, additionalEnvironment, variablesResolved); |
| 468 | result = result.concat(variablesResolved.length === 0 ? variableResolved : variablesResolved); |
| 469 | }); |
| 470 | } |
| 471 | return result; |
| 472 | } |
| 473 | |
| 474 | // Resolve '~' at the start of the path. |
| 475 | export function resolveHome(filePath: string): string { |
nothing calls this directly
no test coverage detected