def sub_name

shake@0.7.0.0 · src/cli.bend:526

import shake@0.7.0.0/src/cli.bend as Cli
import Base

526# the name of the subcommand selected under this command
527def sub_name(mm: Matched) -> Maybe<&2, String>:
528  match mm:
529    case Leaf{_b}:
530      None{}
531    case Node{_b, name, _s}:
532      Some{name}

Uses (3)

Used by (1)