def found.listed

ezx@1.11.0.0 · src/lock/run.bend:418

import ezx@1.11.0.0/src/lock/run.bend as Run
import Base
import ezx@1.11.0.0/src/lock/up.bend as Up

418def found.listed(ok: Bool, +text: String) -> IO(Up.Answer):
419  match ok:
420    case True{}:
421      found.all(nonempty(String.lines(text)))
422    case False{}:
423      IO.pure(Up.Answer, Up.Miss{"ez: could not list sources: " ++ String.trim(text)})

Uses (10)

Used by (1)