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

Function parseRequiredMemoryType

internal/cli/memory.go:1324–1333  ·  view source on GitHub ↗
(raw string)

Source from the content-addressed store, hash-verified

1322}
1323
1324func parseRequiredMemoryType(raw string) (memcontract.Type, error) {
1325 typ, err := parseOptionalMemoryType(raw)
1326 if err != nil {
1327 return "", err
1328 }
1329 if typ == "" {
1330 return "", errors.New("memory.type_required: --type is required")
1331 }
1332 return typ, nil
1333}
1334
1335func parseOptionalMemoryType(raw string) (memcontract.Type, error) {
1336 typ := memcontract.Type(strings.TrimSpace(raw)).Normalize()

Callers 1

newMemoryWriteCommandFunction · 0.85

Calls 1

parseOptionalMemoryTypeFunction · 0.85

Tested by

no test coverage detected