(value: string, homeDir: string)
| 50 | } |
| 51 | |
| 52 | function normalizeIdentityFile(value: string, homeDir: string): string { |
| 53 | const expanded = expandHomePath(value, homeDir); |
| 54 | if (path.isAbsolute(expanded)) { |
| 55 | return expanded; |
| 56 | } |
| 57 | |
| 58 | return path.join(homeDir, expanded); |
| 59 | } |
| 60 | |
| 61 | function parseHostAndUser(host: string): { host: string; user?: string } { |
| 62 | const trimmed = host.trim(); |
no test coverage detected