(copilotArgs []string)
| 251 | } |
| 252 | |
| 253 | func buildCopilotMkdirCommands(copilotArgs []string) string { |
| 254 | // Extract all --add-dir paths and generate mkdir commands |
| 255 | addDirPaths := extractAddDirPaths(copilotArgs) |
| 256 | // Also ensure the log directory exists |
| 257 | addDirPaths = append(addDirPaths, logsFolder) |
| 258 | var mkdirCommands strings.Builder |
| 259 | for _, dir := range addDirPaths { |
| 260 | fmt.Fprintf(&mkdirCommands, "mkdir -p %s\n", dir) |
| 261 | } |
| 262 | return mkdirCommands.String() |
| 263 | } |
| 264 | |
| 265 | func getCopilotModelEnvVar(isDetectionJob bool) string { |
| 266 | if isDetectionJob { |
no test coverage detected