MCPcopy Create free account
hub / github.com/github/gh-aw / buildCopilotMkdirCommands

Function buildCopilotMkdirCommands

pkg/workflow/copilot_engine_execution.go:253–263  ·  view source on GitHub ↗
(copilotArgs []string)

Source from the content-addressed store, hash-verified

251}
252
253func 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
265func getCopilotModelEnvVar(isDetectionJob bool) string {
266 if isDetectionJob {

Callers 1

GetExecutionStepsMethod · 0.85

Calls 2

extractAddDirPathsFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected