def answered

ezx@1.11.0.0 · src/doctor/plan.bend:69

import ezx@1.11.0.0/src/doctor/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/share/args.bend as Args

69# the lines a run printed, or none when it failed, so a program's complaint on
70# stderr is never mistaken for an answer
71def answered(ok: Bool, +text: String) -> List<&2, String>:
72  match ok:
73    case True{}:
74      Args.nonempty(String.lines(text))
75    case False{}:
76      []

Uses (5)

Used by (1)