def line

ezx@1.11.0.0 · src/ez/line.bend:187

import ezx@1.11.0.0/src/ez/line.bend as Line
import Base
import shake@0.6.0.0/main.bend as Shake

187# how a line ends, from what Shake made of it
188def line(+app: Shake.Cli, parsed: Result<&2, &2, Shake.ParseErr, Shake.Matched>) -> Line:
189  match parsed:
190    case Fail{+e}:
191      line.err(Shake.help_path(e), app, e)
192    case Done{+m}:
193      +sub = command(path(m))
194      line.run(is.help(sub), sub, app, m)

Uses (11)

Used by (1)