def entry.sects

ezx@1.11.0.0 · src/git/git.bend:286

import ezx@1.11.0.0/src/git/git.bend as Git
import Base
import ezx@1.11.0.0/src/toml/toml.bend as T
import ezx@1.11.0.0/src/ledger/manifest.bend as M

286# a document that did not parse has no entry to take
287def entry.sects(ok: Bool, ss: List<&2, T.Sect>) -> String:
288  match ok:
289    case False{}:
290      "main.bend"
291    case True{}:
292      +ps = M.pairs_of(ss, "package")
293      entry.pick(M.value(ps, "entry"), M.value(ps, "bin"))

Uses (7)

Used by (1)