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

Function getWorkspaceCommandPrefixFor

pkg/workflow/copilot_engine_installation.go:41–46  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

39// (set as an env var by applyEngineCwdEnv). When engine.cwd is not configured it falls
40// back to the default workspace prefix.
41func 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:

Callers 6

GetExecutionStepsMethod · 0.85
GetExecutionStepsMethod · 0.85
GetExecutionStepsMethod · 0.85
GetExecutionStepsMethod · 0.85
GetExecutionStepsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected