Run.answer.whole: def of ezx@1.11.0.0 Import: import ezx@1.11.0.0/src/lock/run.bend as Run Lines 518-525 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=518&end_line=525 import Base import snap@1.4.0.0/main.bend as R import ezx@1.11.0.0/src/lock/up.bend as Up # a checkout at a rev for `ez add`: a shallow clone into a scratch directory # outside the project and BEND_LIB, weighed, and every file's text read, so # the planner walks the package itself. The scratch directory is removed # whether or not the clone worked, so a refused add leaves no trace. def answer.whole(+url: String, +rev: String) -> IO(Up.Answer): do IO: +tmp : String <- R.exec(["mktemp", "-d"]) whole.dir(R.ok(tmp), String.trim(R.text(tmp)), url, rev) Uses (10): 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=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.trim https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/run.bend&name=whole.dir https://jend.leeeet.dev/definition.txt?path=ezx@1.11.0.0/src/lock/up.bend&name=Answer https://jend.leeeet.dev/definition.txt?path=snap@1.4.0.0/main.bend&name=exec https://jend.leeeet.dev/definition.txt?path=snap@1.4.0.0/main.bend&name=ok https://jend.leeeet.dev/definition.txt?path=snap@1.4.0.0/main.bend&name=text