(stateDir: string)
| 62 | }); |
| 63 | |
| 64 | function readDaemonInfo(stateDir: string): DaemonInfo { |
| 65 | const infoPath = path.join(stateDir, 'daemon.json'); |
| 66 | return JSON.parse(fs.readFileSync(infoPath, 'utf8')) as DaemonInfo; |
| 67 | } |
| 68 | |
| 69 | async function callCommandRpc( |
| 70 | info: DaemonInfo, |
no test coverage detected