def led.of

ezx@1.11.0.0 · src/pub/plan.bend:276

import ezx@1.11.0.0/src/pub/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/ledger/manifest.bend as M
import ezx@1.11.0.0/src/pub/world.bend as PW

276# the ledger read. With no ez.toml there is no package, and nothing is
277# guessed in its place (`cargo publish` refuses a directory with no
278# Cargo.toml the same way).
279def led.of(got: Maybe<&2, String>) -> Led:
280  match got:
281    case None{}:
282      LedNo{"ez: no " ++ PW.toml() ++ " here; ez publish sends the package " ++
283        "a project's ledger names, and ez init makes one"}
284    case Some{text}:
285      led.read(M.parse(text))

Uses (7)

Used by (1)