MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / readConfigFile

Function readConfigFile

projects/runtime-node/src/cli.ts:80–85  ·  view source on GitHub ↗
(filePath: string | undefined)

Source from the content-addressed store, hash-verified

78}
79
80function readConfigFile(filePath: string | undefined): RuntimeNodeServeConfig {
81 if (!filePath) return {}
82 const raw = fs.readFileSync(filePath, "utf8")
83 const parsed = JSON.parse(raw) as unknown
84 return typeof parsed === "object" && parsed !== null ? (parsed as RuntimeNodeServeConfig) : {}
85}
86
87function flagValue(args: string[], name: string): string | undefined {
88 const prefix = `${name}=`

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected