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

Function workspaceRefLooksLikePath

internal/cli/client.go:3256–3260  ·  view source on GitHub ↗
(ref string)

Source from the content-addressed store, hash-verified

3254}
3255
3256func workspaceRefLooksLikePath(ref string) bool {
3257 return filepath.IsAbs(ref) ||
3258 strings.HasPrefix(ref, ".") ||
3259 strings.Contains(ref, string(filepath.Separator))
3260}
3261
3262func canonicalCLIWorkspacePath(path string) (string, error) {
3263 trimmed := strings.TrimSpace(path)

Callers 2

workspaceRouteRefMethod · 0.85

Calls 1

ContainsMethod · 0.80

Tested by

no test coverage detected