def ran

ezx@1.11.0.0 · src/git/exec.bend:15

import ezx@1.11.0.0/src/git/exec.bend as Exec
import Base

15# a git command that failed stops the command, with whatever git said
16def ran(ok: Bool, what: String, text: String) -> IO(Unit):
17  match ok:
18    case True{}:
19      IO.pure(Unit, Unit{})
20    case False{}:
21      IO.die(Unit, 1, "ez: git " ++ what ++ ": " ++ text)

Uses (7)

Used by (1)