INNER CODE UNIT · TypeScript

getValuesFromFile

tim-koehler/Helm-Intellisense · src/utils.ts:45

export function getValuesFromFile(fileName: string): any {
    const filenames = getValueFileNamesFromConfig().reverse();
    const chartBasePath = getChartBasePath(fileName);
    if (chartBasePath === undefined) {
        return undefined;
    }

    const completeFilePaths = [];
    for (const filename of filenames) {
        completeFilePaths.push(path.join(chartBasePath, filename));
    }

    return yaml.loadMerge(completeFilePaths);
}

/**
 * Retrieves the named-templates names from all files.
 */

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…