()
| 166 | } |
| 167 | |
| 168 | export const runConfigValidate = async (): Promise<number> => { |
| 169 | const settings = loadMergedSettings() |
| 170 | const issues = validateSettings(settings) |
| 171 | |
| 172 | if (issues.length === 0) { |
| 173 | logInfo('Settings are valid') |
| 174 | return 0 |
| 175 | } |
| 176 | |
| 177 | logError('Settings validation failed:') |
| 178 | for (const issue of issues) { |
| 179 | logError(`- ${issue.path}: ${issue.message}`) |
| 180 | } |
| 181 | |
| 182 | return 1 |
| 183 | } |
| 184 | |
| 185 | export const runConfigEnvList = async (options: { showSecrets?: boolean } = {}): Promise<number> => { |
| 186 | const values = readEnvValues() |
no test coverage detected