MCPcopy Index your code
hub / github.com/cameri/nostream / readEnvValues

Function readEnvValues

src/cli/utils/env-config.ts:153–162  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151}
152
153export const readEnvValues = (): Record<string, string> => {
154 const { parsed } = parseEnvFile()
155 const values: Record<string, string> = {}
156
157 for (const line of parsed) {
158 values[line.key] = line.value
159 }
160
161 return values
162}
163
164export const upsertEnvValue = (key: string, value: string): void => {
165 const envPath = getEnvFilePath()

Callers 3

runConfigEnvListFunction · 0.90
runConfigEnvGetFunction · 0.90
runConfigEnvValidateFunction · 0.90

Calls 1

parseEnvFileFunction · 0.85

Tested by

no test coverage detected