def text.of

ezx@1.11.0.0 · src/lock/lock.bend:546

import ezx@1.11.0.0/src/lock/lock.bend as Lock
import Base
import ezx@1.11.0.0/src/toml/toml.bend as T
import ezx@1.11.0.0/src/pkg/pkg.bend as K

546# the lock's text: the `[lock]` table, each block in the order given, then the
547# rest, assembled as ez's document text (`T.render`) and written as eztoml
548# writes it (`T.normal`). Every part of it is fixed by the blocks' order, so
549# the order the walk found packages in does not reach the file (EZ-DOC-2).
550def text.of(hub: String, bs: List<&2, K.Item>, rest: List<&2, String>) -> String:
551  T.normal(String.join(T.render.sect(lock.sect(hub)) <>
552    List.append(&2, String, block.texts(bs), rest), "\n"))

Uses (9)

Used by (3)