MCPcopy Create free account
hub / github.com/driangle/taskmd / readConfig

Function readConfig

apps/vscode/src/config.ts:40–47  ·  view source on GitHub ↗

* Parse a `.taskmd.yaml` config file. Returns null on any error.

(configPath: string)

Source from the content-addressed store, hash-verified

38 * Parse a `.taskmd.yaml` config file. Returns null on any error.
39 */
40function readConfig(configPath: string): TaskmdConfig | null {
41 try {
42 const content = fs.readFileSync(configPath, "utf-8");
43 return (parse(content) as TaskmdConfig | null) ?? null;
44 } catch {
45 return null;
46 }
47}
48
49/**
50 * Read the task directory from a `.taskmd.yaml` config file.

Callers 2

readTaskDirFromConfigFunction · 0.85
readScopesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected