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

Function resolveConfigWorkspaceRoot

internal/cli/config.go:904–909  ·  view source on GitHub ↗
(deps commandDeps, raw string)

Source from the content-addressed store, hash-verified

902}
903
904func resolveConfigWorkspaceRoot(deps commandDeps, raw string) (string, error) {
905 if strings.TrimSpace(raw) != "" {
906 return aghconfig.ResolvePath(raw)
907 }
908 return currentWorkingDirectory(deps)
909}
910
911func resolveOptionalConfigWorkspaceRoot(raw string) (string, error) {
912 if strings.TrimSpace(raw) == "" {

Callers 2

newConfigPathCommandFunction · 0.85
configWriteTargetFunction · 0.85

Calls 2

currentWorkingDirectoryFunction · 0.85
ResolvePathMethod · 0.65

Tested by

no test coverage detected