def read.of
import ezx@1.11.0.0/src/doctor/world.bend as Worldimport 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)