(line string)
| 935 | } |
| 936 | |
| 937 | func parseSSHConfigLine(line string) (string, string, bool) { |
| 938 | line = trimSSHInlineComment(line) |
| 939 | fields := strings.Fields(line) |
| 940 | if len(fields) < 2 { |
| 941 | return "", "", false |
| 942 | } |
| 943 | return fields[0], strings.Join(fields[1:], " "), true |
| 944 | } |
| 945 | |
| 946 | func trimSSHInlineComment(line string) string { |
| 947 | inQuote := false |
no test coverage detected