def answer.whole

ezx@1.11.0.0 · src/lock/run.bend:518

import ezx@1.11.0.0/src/lock/run.bend as Run
import Base
import snap@1.4.0.0/main.bend as R
import ezx@1.11.0.0/src/lock/up.bend as Up

518# a checkout at a rev for `ez add`: a shallow clone into a scratch directory
519# outside the project and BEND_LIB, weighed, and every file's text read, so
520# the planner walks the package itself. The scratch directory is removed
521# whether or not the clone worked, so a refused add leaves no trace.
522def answer.whole(+url: String, +rev: String) -> IO(Up.Answer):
523  do IO<Up.Answer>:
524    +tmp : String <- R.exec(["mktemp", "-d"])
525    whole.dir(R.ok(tmp), String.trim(R.text(tmp)), url, rev)

Uses (10)

Used by (1)