--- Helper functions ---
()
| 164 | // --- Helper functions --- |
| 165 | |
| 166 | func sshConfigPath() string { |
| 167 | home, _ := os.UserHomeDir() |
| 168 | return filepath.Join(home, ".ssh", "config") |
| 169 | } |
| 170 | |
| 171 | func backupSSHConfig() (string, error) { |
| 172 | configPath := sshConfigPath() |
no outgoing calls
no test coverage detected