def read.of
import ezx@1.11.0.0/src/remove/plan.bend as Planimport Base
import ezx@1.11.0.0/src/ledger/manifest.bend as M
37# the ledger as read: what the file says, or, with no file, a read that did
38# not parse and says why. A missing ledger is not an empty one to write back.
39def read.of(got: Maybe<&2, String>) -> M.Read:
40 match got:
41 case None{}:
42 M.Bad{"no " ++ toml() ++ " here; ez remove works on a project's " ++
43 "ledger, and ez init makes one"}
44 case Some{text}:
45 M.parse(text)