def read.of

ezx@1.11.0.0 · src/doctor/world.bend:82

import ezx@1.11.0.0/src/doctor/world.bend as World
import Base
import ezx@1.11.0.0/src/ledger/manifest.bend as M

82# the ledger as read: what the file says, or, with no file, a read that did
83# not parse and says why, as every command that reads a ledger says it
84def read.of(got: Maybe<&2, String>) -> M.Read:
85  match got:
86    case None{}:
87      M.Bad{"none here; ez init makes one"}
88    case Some{text}:
89      M.parse(text)

Uses (4)

Used by (1)