(raw string)
| 891 | } |
| 892 | |
| 893 | func 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 | |
| 904 | func resolveConfigWorkspaceRoot(deps commandDeps, raw string) (string, error) { |
| 905 | if strings.TrimSpace(raw) != "" { |
no test coverage detected