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

Function cloneWorkspaces

internal/workspace/clone.go:46–56  ·  view source on GitHub ↗
(src []Workspace)

Source from the content-addressed store, hash-verified

44}
45
46func cloneWorkspaces(src []Workspace) []Workspace {
47 if len(src) == 0 {
48 return nil
49 }
50
51 cloned := make([]Workspace, 0, len(src))
52 for _, ws := range src {
53 cloned = append(cloned, cloneWorkspace(ws))
54 }
55 return cloned
56}
57
58func cloneConfig(src *aghconfig.Config) aghconfig.Config {
59 return aghconfig.Config{

Callers 1

ListMethod · 0.85

Calls 2

appendFunction · 0.85
cloneWorkspaceFunction · 0.85

Tested by

no test coverage detected