Run.clone.walk: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/lock/run.bend as Run Lines 184-191 of ezx@1.11.0.0/src/lock/run.bend: https://jend.leeeet.dev/read.txt?path=ezx@1.11.0.0/src/lock/run.bend&start_line=184&end_line=191 import Base import snap@1.4.0.0/main.bend as R import ezx@1.11.0.0/src/pkg/pkg.bend as K import ezx@1.11.0.0/src/lock/world.bend as W # the checkout's package, walked from its entry the way `ez add` walked it def clone.walk(+work: String, +entry: String, +nar: String) -> IO(W.Answer): do IO: +p : K.Pkg <- K.pkg_in(work, entry) +fs : List<&2, K.Item> <- IO.pure(List<&2, K.Item>, K.pkg.files(p)) ss : List<&2, String> <- disk.all(K.pkg.root(p), fs) _rm : String <- R.exec(["rm", "-rf", work]) return W.Got{W.Clone{nar}, K.manifest_of(fs), ss} Uses (15): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure 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/lock/run.bend&name=disk.all https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/world.bend&name=Answer https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/world.bend&name=How 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=Pkg https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&name=manifest_of https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&name=pkg.files https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&name=pkg.root https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/pkg/pkg.bend&name=pkg_in https://jend.leeeet.dev/definition.txt?path=snap@1.4.0.0/main.bend&name=exec