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

Method buildCopilotCommand

pkg/workflow/copilot_engine_execution.go:356–362  ·  view source on GitHub ↗
(workflowData *WorkflowData, copilotArgs []string, execPrefix, customCommandScriptSetup, logFile, mkdirCommands string, isBYOKMode bool)

Source from the content-addressed store, hash-verified

354}
355
356func (e *CopilotEngine) buildCopilotCommand(workflowData *WorkflowData, copilotArgs []string, execPrefix, customCommandScriptSetup, logFile, mkdirCommands string, isBYOKMode bool) (string, string) {
357 copilotCommand, copilotSDKServerArgsJSON := e.buildCopilotBaseCommand(workflowData, copilotArgs, execPrefix)
358 if isFirewallEnabled(workflowData) {
359 return e.buildCopilotFirewallCommand(workflowData, copilotCommand, customCommandScriptSetup, isBYOKMode, logFile), copilotSDKServerArgsJSON
360 }
361 return e.buildCopilotDirectCommand(workflowData, copilotCommand, customCommandScriptSetup, mkdirCommands, logFile), copilotSDKServerArgsJSON
362}
363
364func (e *CopilotEngine) buildCopilotBaseCommand(workflowData *WorkflowData, copilotArgs []string, execPrefix string) (string, string) {
365 if workflowData.EngineConfig != nil && workflowData.EngineConfig.CopilotSDK {

Callers 1

GetExecutionStepsMethod · 0.95

Calls 4

isFirewallEnabledFunction · 0.85

Tested by

no test coverage detected