def check.said

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

import ezx@1.11.0.0/src/ez/cmd.bend as Cmd
import Base

60# a passing check says so, since bend says nothing when it is happy, and a
61# failing one shows what bend said
62def check.said(passed: Bool, entry: String, text: String) -> IO(Unit):
63  match passed:
64    case True{}:
65      IO.print("ok " ++ entry)
66    case False{}:
67      IO.write(text)

Uses (7)

Used by (1)