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

Function extractAddDirPaths

pkg/workflow/copilot_engine_execution.go:659–667  ·  view source on GitHub ↗

extractAddDirPaths extracts all directory paths from copilot args that follow --add-dir flags

(args []string)

Source from the content-addressed store, hash-verified

657
658// extractAddDirPaths extracts all directory paths from copilot args that follow --add-dir flags
659func extractAddDirPaths(args []string) []string {
660 var dirs []string
661 for i := range len(args) - 1 {
662 if args[i] == "--add-dir" {
663 dirs = append(dirs, args[i+1])
664 }
665 }
666 return dirs
667}
668
669func buildEngineCommandScriptSetup(command string) string {
670 // engine.command intentionally accepts shell-form commands from trusted workflow

Callers 2

TestExtractAddDirPathsFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestExtractAddDirPathsFunction · 0.68