def hop.run

ezx@1.11.0.0 · src/ws/run.bend:94

import ezx@1.11.0.0/src/ws/run.bend as Run
import Base
import snap@1.4.0.0/main.bend as Sn

94# a run at the root, which ends as that run ended
95def hop.run(+dir: String) -> IO(Unit):
96  do IO<Unit>:
97    +pwd : String <- Sn.exec(["pwd"])
98    xs : List<&2, String> <- argv()
99    +code : U32 <- hop.go(dir, String.trim(Sn.text(pwd)), xs)
100    hop.end(U32.is_eq(code, 0), code)

Uses (13)

Used by (1)