Cli.pos_slot: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 6398-6404 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=6398&end_line=6404 import Base def pos_slot(parsed: Usage, k: Nat, usage: String, +attrs: List<&2, Item>, lists: List<&2, List<&2, String>>) -> List<&2, Slot>: match parsed: case Parsed{id, short, long, PosKind{required, many}}: [Slot{k, has_hidden(attrs), required, many, has_rest(attrs), placeholder(usage), comp_of(find_one_of(attrs), find_as(attrs), lists)}] case _: [] Uses (13): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Item https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Slot https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Usage https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=UsageKind https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=comp_of https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=find_as https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=find_one_of https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=has_hidden https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=has_rest https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=placeholder