(options: {
stateDir: string;
state: RemoteConnectionState;
})
| 74 | } |
| 75 | |
| 76 | export function writeRemoteConnectionState(options: { |
| 77 | stateDir: string; |
| 78 | state: RemoteConnectionState; |
| 79 | }): void { |
| 80 | const statePath = remoteConnectionStatePath({ |
| 81 | stateDir: options.stateDir, |
| 82 | session: options.state.session, |
| 83 | }); |
| 84 | fs.mkdirSync(path.dirname(statePath), { recursive: true }); |
| 85 | writeJsonFile(statePath, options.state); |
| 86 | writeJsonFile(activeConnectionStatePath(options.stateDir), { session: options.state.session }); |
| 87 | } |
| 88 | |
| 89 | export function buildRemoteConnectionDaemonState( |
| 90 | flags: Pick< |
no test coverage detected