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

Function validateBoolean

src/cli/utils/env-config.ts:128–135  ·  view source on GitHub ↗
(key: string, value: string)

Source from the content-addressed store, hash-verified

126}
127
128const validateBoolean = (key: string, value: string): string | undefined => {
129 const normalized = value.trim().toLowerCase()
130 if (normalized === 'true' || normalized === 'false') {
131 return undefined
132 }
133
134 return `${key} must be true or false`
135}
136
137export const validateEnvPair = (key: string, value: string): string | undefined => {
138 if (!isSupportedEnvKey(key)) {

Callers 1

validateEnvPairFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected