def whole.weigh

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

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/git/exec.bend as GX
import ezx@1.11.0.0/src/share/say.bend as Say
import ezx@1.11.0.0/src/share/spin.bend as Spin
import ezx@1.11.0.0/src/lock/up.bend as Up

494def whole.weigh(+work: String, +rev: String) -> IO(Up.Answer):
495  do IO<Up.Answer>:
496    _dg : String <- R.exec(["rm", "-rf", work ++ "/.git"])
497    +s : Say.Spin <- Spin.hold(Say.hashing(rev))
498    +nar : String <- GX.nar(work)
499    Spin.done(s)
500    +out : String <- R.exec(["find", work, "(", "-type", "f", "-o", "-type", "l", ")"])
501    whole.listed(R.ok(out), work, nar, R.text(out))

Uses (16)

Used by (1)