def bash_shape

cli@0.2.0.0 · cli.bend:6519

import cli@0.2.0.0/cli.bend as Cli
import Base

6519def bash_shape(found: Maybe<&2, Slot>) -> List<&2, String>:
6520  match found:
6521    case Some{Slot{k, hidden, required, many, rest, ph, comp}}:
6522      [String.concat(["      many=", Nat.show(k), " rest=",
6523        Bool.pick(String, rest, "1", "0")])]
6524    case None{}: []

Uses (7)

Used by (1)