def go.say

ezx@1.11.0.0 · src/ez/main.bend:87

import ezx@1.11.0.0/src/ez/main.bend as Ezx
import Base
import ezx@1.11.0.0/src/share/args.bend as Args
import ezx@1.11.0.0/src/ez/line.bend as L

87# what a line says: the command it names run, its help on stdout, or what
88# was wrong with it on stderr, with a hint for `ez sync`
89def go.say(how: L.Line, +as: List<&2, String>) -> IO(Unit):
90  match how:
91    case L.Runs{sub, +m}:
92      dispatch(sub, m, as)
93    case L.Shows{text}:
94      IO.write(text)
95    case L.Misuse{text}:
96      do IO<Unit>:
97        IO.print_err(text)
98        hint.sync(String.eq(Args.at(as, 0n), "sync"))

Uses (12)

Used by (1)