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

Function collectDefaults

scripts/web-env/index.ts:106–116  ·  view source on GitHub ↗
(repoRoot: string, name: string)

Source from the content-addressed store, hash-verified

104 } catch {
105 return value;
106 }
107}
108
109function rejectMatchingTrackedValues(
110 repoRoot: string,
111 name: string,
112 values: Partial<Record<Environment, string>>,
113 defaults: Map<string, string>
114): void {
115 for (const relativeFile of trackedEnvFiles(repoRoot)) {
116 const content = readFileSync(path.join(repoRoot, relativeFile), 'utf8');
117 const trackedValue = defaults.get(relativeFile) ?? assignmentValue(content, name);
118 const matchesRemoteValue = Object.values(values).some(value => trackedValue === value);
119 if (matchesRemoteValue) {

Callers 1

mainFunction · 0.85

Calls 3

trackedEnvFilesFunction · 0.85
questionFunction · 0.85
setMethod · 0.65

Tested by

no test coverage detected