def run.started

ezx@1.11.0.0 · src/ez/cmd.bend:110

import ezx@1.11.0.0/src/ez/cmd.bend as Cmd
import Base
import ezx@1.11.0.0/src/share/env.bend as Env
import ezx@1.11.0.0/src/ez/start.bend as S
import ezx@1.11.0.0/src/share/pass.bend as Pass

110# the program `ez run` starts, on ez's own stdin, stdout and stderr, with the
111# project's BEND_LIB set for it, and the status it exited with; 0 when the
112# run was refused, which starts none
113def run.started(start: S.Start, +at: String) -> IO(U32):
114  match start:
115    case S.Refused{_why}:
116      IO.pure(U32, 0)
117    case S.Starts{line}:
118      Pass.run(Env.line(at, line))

Uses (7)

Used by (1)