def line.group

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

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

168# a path that names no command: a bare `ez` is help, as a bare `cargo` is,
169# and a bare group such as `ez tool` is a line that did not say which of its
170# commands to run, as `cargo report` with no command is, so its help goes to
171# stderr and the line fails
172def line.group(bare: Bool, +app: Shake.Cli, +matched: Shake.Matched) -> Line:
173  match bare:
174    case True{}:
175      Shows{Shake.help(app, [])}
176    case False{}:
177      Misuse{Shake.help(app, Shake.path_of(matched))}

Uses (7)

Used by (1)