INNER CODE UNIT · TypeScript

getRelativeDependencyChartPaths

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

function getRelativeDependencyChartPaths(chartYaml: yaml.Yaml): string[] {
    const dependencies = (chartYaml as any).dependencies;
    if (dependencies === undefined) {
        return [];
    }

    const localChartDependencyPaths: string[] = [];
    for (const dependency of dependencies) {
        const repository = dependency.repository;
        if (repository === undefined) {
            continue;
        }
        if (!repository.startsWith('file://')) {
            continue;
        }
        const chartPath = repository.replace('file://', '');
        localChartDependencyPaths.push(chartPath);
    }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…