MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / rejectMatchingTrackedValues

Function rejectMatchingTrackedValues

scripts/web-env/index.ts:143–159  ·  view source on GitHub ↗
(
  repoRoot: string,
  name: string,
  values: Values,
  defaults: Map<string, string>
)

Source from the content-addressed store, hash-verified

141 if (contexts.length === 0) throw new Error('None of the Vercel projects exist.');
142 const vault = vaultEnvironments.length > 0 ? resolveVault() : undefined;
143 const values = await collectValues(options, environments);
144 const defaults = options.only
145 ? new Map<string, string>()
146 : await collectDefaults(repoRoot, options.name);
147 if (!options.only && defaults.size === 0) warnAboutMissingTrackedDefault(options.name);
148 rejectMatchingTrackedValues(repoRoot, options.name, values, defaults);
149
150 const deployableEnvironments = environments.filter(
151 (environment): environment is Exclude<Environment, 'development'> =>
152 environment !== 'development'
153 );
154
155 console.log('\nPlan');
156 for (const environment of environments) {
157 const type = sensitive && environment !== 'development' ? 'sensitive' : 'encrypted';
158 for (const context of contexts) console.log(`- ${context.project}/${environment}: ${type}`);
159 }
160 for (const project of missingProjects) {
161 console.log(`- ${project}: skip, the Vercel project does not exist yet`);
162 }

Callers 1

mainFunction · 0.85

Calls 5

trackedEnvFilesFunction · 0.85
assignmentValueFunction · 0.85
joinMethod · 0.80
getMethod · 0.65
valuesMethod · 0.65

Tested by

no test coverage detected