def render.tools

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

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/ledger/manifest.bend as M
import ezx@1.11.0.0/src/pkg/pkg.bend as K

584# the lock with its tools after the packages. An empty tool list adds no
585# table, so a ledger with no tools writes the lock `render` writes.
586def render.tools(ts: List<&2, M.Tool>, hub: String, ps: List<&2, Pack>) -> String:
587  text.of(hub, K.file.sort(pack.blocks(ps)), T.render.all(tool.sects(ts)))

Uses (9)

Used by (1)