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

Function runConfigEnvValidate

src/cli/commands/config.ts:242–257  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

240}
241
242export const runConfigEnvValidate = async (): Promise<number> => {
243 const values = readEnvValues()
244 const issues = validateEnvValues(values)
245
246 if (issues.length === 0) {
247 logInfo('Environment settings are valid')
248 return 0
249 }
250
251 logError('Environment validation failed:')
252 for (const issue of issues) {
253 logError(`- ${formatLabel(issue.path)} (${issue.path}): ${issue.message}`)
254 }
255
256 return 1
257}
258
259export const getConfigTopLevelCategories = (): string[] => {
260 const defaults = loadDefaults() as unknown as Record<string, unknown>

Callers 1

index.tsFile · 0.90

Calls 5

readEnvValuesFunction · 0.90
validateEnvValuesFunction · 0.90
logInfoFunction · 0.90
logErrorFunction · 0.90
formatLabelFunction · 0.85

Tested by

no test coverage detected