Cli.completing: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 6418-6424 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=6418&end_line=6424 import Base # The slots up to the variadic one, which takes every later value. def completing(slots: List<&2, Slot>) -> List<&2, Slot>: match slots: case Nil{}: Nil{} case Slot{k, hidden, required, True{}, rest, ph, comp} <> tail: [Slot{k, hidden, required, True{}, rest, ph, comp}] case head <> tail: head <> completing(tail) Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Slot