Cli.entry_dests: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 6501-6509 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=6501&end_line=6509 import Base # Each subcommand name's path, once per name. def entry_dests(entries: List<&2, Entry>, +words: List<&2, String>) -> List<&2, String>: match entries: case Nil{}: Nil{} case Entry{name, names, about} <> tail: List.append(&2, String, dests(names, String.join(List.append(&2, String, words, [name]), " ")), entry_dests(tail, words)) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.join https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Entry https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=dests