Hub.effects.of: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/add/hub.bend as Hub Lines 300-317 of ezx@1.11.0.0/src/add/hub.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/add/hub.bend&start_line=300&end_line=317 import Base import ezx@1.11.0.0/src/add/world.bend as A import ezx@1.11.0.0/src/lock/plan.bend as P import ezx@1.11.0.0/src/lock/world.bend as W import ezx@1.11.0.0/src/ledger/manifest.bend as M import ezx@1.11.0.0/src/ledger/render.bend as Rend import ezx@1.11.0.0/src/ledger/ignore.bend as I # what an add of a package the hub served does: the tree laid, its name's # file, ez.toml written, `.gitignore` when the allowlist changes, and what a # person is told def effects.of( +dep: M.Dep, +hash: String, +ls: List<&2, W.Source>, +manifest: M.Manifest, +world: A.World ) -> List<&2, P.Effect>: +old = M.find(A.deps.of(manifest), M.dep.name(dep)) +next = I.sync(A.deps.of(Rend.add.keep(manifest, dep)), A.ignore(world)) P.Lay{place.of(M.source.vendor(M.source.dep(old))), hash, List.append(&2, W.Source, ls, [W.Source{"manifest", W.manifest(ls)}])} <> (P.Name{nv(world), hash} <> (P.Write{A.toml(), Rend.show(Rend.add.keep(manifest, dep))} <> ignore.put(String.eq(next, A.ignore(world)), next, says(hash, M.dep.entry(dep), world)))) Uses (25): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.eq https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/add/hub.bend&name=ignore.put https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/add/hub.bend&name=nv https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/add/hub.bend&name=place.of https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/add/hub.bend&name=says https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/add/world.bend&name=World https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/add/world.bend&name=deps.of https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/add/world.bend&name=ignore https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/add/world.bend&name=toml https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ledger/ignore.bend&name=sync https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ledger/manifest.bend&name=Dep https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ledger/manifest.bend&name=Manifest https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ledger/manifest.bend&name=dep.entry https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ledger/manifest.bend&name=dep.name https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ledger/manifest.bend&name=find https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ledger/manifest.bend&name=source.dep https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ledger/manifest.bend&name=source.vendor https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ledger/render.bend&name=add.keep https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/ledger/render.bend&name=show https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/plan.bend&name=Effect https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/world.bend&name=Source https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/world.bend&name=manifest