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

Function runConfigValidate

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

Source from the content-addressed store, hash-verified

166}
167
168export 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
185export const runConfigEnvList = async (options: { showSecrets?: boolean } = {}): Promise<number> => {
186 const values = readEnvValues()

Callers 2

index.tsFile · 0.90
runConfigureMenuFunction · 0.90

Calls 4

loadMergedSettingsFunction · 0.90
validateSettingsFunction · 0.90
logInfoFunction · 0.90
logErrorFunction · 0.90

Tested by

no test coverage detected