def parsed
import ezx@1.11.0.0/src/lock/world.bend as Worldimport Base
import ezx@1.11.0.0/src/ledger/manifest.bend as M
424# the ledger, read. A missing one is refused as a ledger that does not
425# parse: only `ez init` makes a ledger, and a lock of none is not a lock.
426def parsed(ledger: Maybe<&2, String>) -> M.Read:
427 match ledger:
428 case None{}:
429 M.Bad{"no ez.toml here; ez lock works on a project's ledger, and ez init makes one"}
430 case Some{text}:
431 M.parse(text)