def sub_of.pick

shake@0.7.0.0 · src/cli.bend:534

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

534# a subcommand's Matched when it is the one asked for
535def sub_of.pick(hit: Bool, next: Matched) -> Maybe<&2, Matched>:
536  match hit:
537    case True{}:
538      Some{next}
539    case False{}:
540      None{}

Uses (3)

Used by (1)