(env: NodeJS.ProcessEnv = process.env)
| 198 | * Injectable for hermetic tests. |
| 199 | */ |
| 200 | export function fetchSources(env: NodeJS.ProcessEnv = process.env): GbrainSourceRow[] { |
| 201 | const raw = execGbrainJson(["sources", "list", "--json"], { baseEnv: env }); |
| 202 | if (raw === null) throw new Error("gbrain sources list returned no JSON"); |
| 203 | return parseSourcesList(raw); |
| 204 | } |
| 205 | |
| 206 | export interface RemoveDecision { |
| 207 | allow: boolean; |
nothing calls this directly
no test coverage detected