getWorkspaceCommandPrefixFor returns the shell cd prefix for engine command generation. When engine.cwd is configured it returns a prefix that changes to ${GH_AW_ENGINE_CWD} (set as an env var by applyEngineCwdEnv). When engine.cwd is not configured it falls back to the default workspace prefix.
(config *EngineConfig)
| 39 | // (set as an env var by applyEngineCwdEnv). When engine.cwd is not configured it falls |
| 40 | // back to the default workspace prefix. |
| 41 | func getWorkspaceCommandPrefixFor(config *EngineConfig) string { |
| 42 | if config != nil && config.Cwd != "" { |
| 43 | return `cd "${GH_AW_ENGINE_CWD}" && ` |
| 44 | } |
| 45 | return workspaceCommandPrefix |
| 46 | } |
| 47 | |
| 48 | // GetSecretValidationStep returns the secret validation step for the Copilot engine. |
| 49 | // Returns an empty step if: |
no outgoing calls
no test coverage detected