extractAddDirPaths extracts all directory paths from copilot args that follow --add-dir flags
(args []string)
| 657 | |
| 658 | // extractAddDirPaths extracts all directory paths from copilot args that follow --add-dir flags |
| 659 | func 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 | |
| 669 | func buildEngineCommandScriptSetup(command string) string { |
| 670 | // engine.command intentionally accepts shell-form commands from trusted workflow |
no outgoing calls