MCPcopy Create free account
hub / github.com/compozy/agh / cloneAutomationConfig

Function cloneAutomationConfig

internal/workspace/clone.go:115–120  ·  view source on GitHub ↗
(src aghconfig.AutomationConfig)

Source from the content-addressed store, hash-verified

113}
114
115func cloneAutomationConfig(src aghconfig.AutomationConfig) aghconfig.AutomationConfig {
116 cloned := src
117 cloned.Jobs = cloneAutomationJobs(src.Jobs)
118 cloned.Triggers = cloneAutomationTriggers(src.Triggers)
119 return cloned
120}
121
122func cloneAutomationJobs(src []aghconfig.AutomationJob) []aghconfig.AutomationJob {
123 if len(src) == 0 {

Callers 1

cloneConfigFunction · 0.85

Calls 2

cloneAutomationJobsFunction · 0.85
cloneAutomationTriggersFunction · 0.85

Tested by

no test coverage detected