Cli.scan_short: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 3399-3408 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=3399&end_line=3408 import Base # The lookup takes only the scope's keys: an accessor for them would take # the state and copy each of its fields. def scan_short(+state: ScanState, token: String) -> Mode: match state: case ScanState{Scope{path, Spec{keys, args, slots, variadic, subs, has_sub, external, needs_sub, version, digit_short, inherit}}, events, resting, positional_count, ext, issue}: +chars = String.drop(token, 1n) found = find_short_for_head(chars, keys) scan_short_go(chars, state, found) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.drop https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Mode https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=ScanState https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Scope https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Spec https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=find_short_for_head https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=scan_short_go