def run
ezx@1.11.0.0 · src/lock/run.bend:743
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/share/say.bend as Say
import ezx@1.11.0.0/src/lock/world.bend as W
import ezx@1.11.0.0/src/ws/run.bend as WsRun
import ezx@1.11.0.0/src/ws/joint.bend as J
743
744
745
746def run(up: Bool, +only: String) -> IO(Unit):
747 do IO<Unit>:
748 IO.print_err(Say.resolving())
749 lib : String <- bend.lib()
750 +pwd : String <- R.exec(["pwd"])
751 own : Maybe<&2, String> <- read.ledger()
752 +ls : W.Listing <- read.listing()
753 pd : WsRun.Planned <- WsRun.ledger(own, J.files(ls))
754 run.planned(pd, lib, up, only, String.trim(R.text(pwd)), ls)