def led.of
import ezx@1.11.0.0/src/tool/plan.bend as Planimport Base
import ezx@1.11.0.0/src/ledger/manifest.bend as M
536# the checkout's ledger as read. A checkout with no ez.toml is a plain Bend
537# repository, whose ledger names nothing: no package, no entry, no deps.
538def led.of(got: Maybe<&2, String>) -> M.Read:
539 match got:
540 case None{}:
541 M.Good{M.Manifest{"", "", "", "", "", "", [], []}}
542 case Some{text}:
543 M.parse(text)