(sshConfigPath: string, content: string)
| 36 | } |
| 37 | |
| 38 | async function writeSSHConfig(sshConfigPath: string, content: string): Promise<void> { |
| 39 | await fs.mkdir(path.dirname(sshConfigPath), { recursive: true, mode: 0o700 }); |
| 40 | await fs.writeFile(sshConfigPath, content, "utf8"); |
| 41 | } |
| 42 | |
| 43 | async function readSSHConfig(sshConfigPath: string): Promise<string> { |
| 44 | return fs.readFile(sshConfigPath, "utf8"); |
no test coverage detected