def led.of

ezx@1.11.0.0 · src/tool/plan.bend:536

import ezx@1.11.0.0/src/tool/plan.bend as Plan
import 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)

Uses (6)

Used by (1)