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

Function parseWriteScope

internal/cli/config.go:893–902  ·  view source on GitHub ↗
(raw string)

Source from the content-addressed store, hash-verified

891}
892
893func parseWriteScope(raw string) (aghconfig.WriteScope, error) {
894 scope := aghconfig.WriteScope(strings.ToLower(strings.TrimSpace(raw)))
895 if scope == "" {
896 scope = aghconfig.WriteScopeGlobal
897 }
898 if err := scope.Validate(); err != nil {
899 return "", err
900 }
901 return scope, nil
902}
903
904func resolveConfigWorkspaceRoot(deps commandDeps, raw string) (string, error) {
905 if strings.TrimSpace(raw) != "" {

Callers 2

newConfigPathCommandFunction · 0.85
configWriteTargetFunction · 0.85

Calls 1

ValidateMethod · 0.65

Tested by

no test coverage detected