Plan.effects.of: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/add/plan.bend as Plan Lines 559-578 of ezx@1.11.0.0/src/add/plan.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/add/plan.bend&start_line=559&end_line=578 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 import ezx@1.11.0.0/src/pkg/pkg.bend as K # what an add that walked a package does: the tree laid, ez.toml written, # `.gitignore` when the allowlist changes, the old committed tree removed, and # what a person is told def effects.of( +dep: M.Dep, +hash: String, +at: String, fs: List<&2, K.Source>, ss: List<&2, K.Item>, +manifest: M.Manifest, +world: A.World ) -> List<&2, P.Effect>: +old = M.find(A.deps.of(manifest), M.dep.name(dep)) +left = A.deps.of(Rend.add.keep(manifest, dep)) +next = I.sync(left, A.ignore(world)) P.Lay{place.of(M.source.vendor(M.source.dep(old))), hash, List.append(&2, W.Source, srcs(fs), [W.Source{"manifest", K.manifest_of(ss)}])} <> (P.Write{A.toml(), Rend.show(Rend.add.keep(manifest, dep))} <> ignore.put(String.eq(next, A.ignore(world)), next, P.drops.of(gone(old, hash, left), says(hash, at, world)))) Uses (28): 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/plan.bend&name=gone https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/add/plan.bend&name=ignore.put https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/add/plan.bend&name=place.of https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/add/plan.bend&name=says https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/add/plan.bend&name=srcs 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.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/plan.bend&name=drops.of 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/pkg/pkg.bend&name=Item https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&name=Source https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&name=manifest_of