def read.of

ezx@1.11.0.0 · src/remove/plan.bend:37

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

Uses (6)

Used by (1)