Lock.tool.pairs: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/lock/lock.bend as Lock Lines 558-569 of ezx@1.11.0.0/src/lock/lock.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/lock/lock.bend&start_line=558&end_line=569 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 # the keys a pinned CLI contributes. The same names a `[tools.*]` section # uses in ez.toml, and not the `[packages.*]` source table. def tool.pairs(+entry: String, +binary: String, source: M.Source) -> List<&2, T.Kv>: match source: case M.Hub{_named}: List.concat(&2, T.Kv, [kv("entry", entry), kv("bin", binary)]) case M.Git{url, rev, tag, root, nar, _vend}: List.concat(&2, T.Kv, [kv("git", url), kv("rev", rev), kv("tag", tag), kv("root", root), kv("narHash", nar), kv("entry", entry), kv("bin", binary)]) case M.Member{_path, _named}: List.concat(&2, T.Kv, [kv("entry", entry), kv("bin", binary)]) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.concat 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/ledger/manifest.bend&name=Source https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/lock.bend&name=kv https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/toml/toml.bend&name=Kv