Relock.ledgers.at: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/ws/relock.bend as Relock Lines 198-205 of ezx@1.11.0.0/src/ws/relock.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/ws/relock.bend&start_line=198&end_line=205 import Base import ezx@1.11.0.0/src/pkg/path.bend as P import ezx@1.11.0.0/src/relock/relock.bend as R import ezx@1.11.0.0/src/ws/workspace.bend as W import ezx@1.11.0.0/src/ws/joint.bend as J # the ledgers once the command at `rel` writes `new`: the root's, at the # root, or the member's ez.toml under it def ledgers.at(rel: List<&2, String>, +new: String, +text: String, +fs: List<&2, J.Found>) -> Ledgers: match rel: case []: Ledgers{new, fs} case hd <> tl: Ledgers{text, put.found(fs, P.join(W.segs.text(hd <> tl), R.toml()), new)} Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/path.bend&name=join https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/relock/relock.bend&name=toml https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ws/joint.bend&name=Found https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ws/relock.bend&name=Ledgers https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ws/relock.bend&name=put.found https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ws/workspace.bend&name=segs.text