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

Function classifySandboxMutationPath

internal/cli/config.go:1715–1733  ·  view source on GitHub ↗
(path []string)

Source from the content-addressed store, hash-verified

1713}
1714
1715func classifySandboxMutationPath(path []string) (configSetValueKind, bool, bool) {
1716 if len(path) == 4 && path[0] == configPathSandboxes {
1717 switch path[2] {
1718 case configEnvKey, configSecretEnvKey:
1719 return configSetString, true, true
1720 case configNetworkKey:
1721 return classifySandboxNetworkMutationPath(path[3])
1722 case "daytona":
1723 return classifySandboxDaytonaMutationPath(path[3])
1724 }
1725 }
1726 if len(path) == 3 && path[0] == configPathSandboxes {
1727 switch path[2] {
1728 case configBackendKey, "sync_mode", "persistence", "runtime_root":
1729 return configSetString, false, true
1730 }
1731 }
1732 return configSetString, false, false
1733}
1734
1735func classifySandboxNetworkMutationPath(name string) (configSetValueKind, bool, bool) {
1736 switch name {

Callers 1

Tested by

no test coverage detected