(lines []string, insertAt int, directives []string)
| 1178 | } |
| 1179 | |
| 1180 | func insertSSHDirectivesAt(lines []string, insertAt int, directives []string) []string { |
| 1181 | newLines := make([]string, 0, len(lines)+len(directives)) |
| 1182 | newLines = append(newLines, lines[:insertAt]...) |
| 1183 | newLines = append(newLines, directives...) |
| 1184 | newLines = append(newLines, lines[insertAt:]...) |
| 1185 | return newLines |
| 1186 | } |
| 1187 | |
| 1188 | func isSSHConfigPathAllowed(fileName string) bool { |
| 1189 | if fileName == "" { |
no outgoing calls
no test coverage detected