()
| 240 | } |
| 241 | |
| 242 | export 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 | |
| 259 | export const getConfigTopLevelCategories = (): string[] => { |
| 260 | const defaults = loadDefaults() as unknown as Record<string, unknown> |
no test coverage detected