Cli.command_rows: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 5427-5434 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=5427&end_line=5434 import Base def command_rows(items: List<&2, Item>) -> List<&2, Row>: match items: case Nil{}: Nil{} case Sub{name, about, +children} <> tail: List.append(&2, Row, command_row(has_hidden(children), name, about, children), command_rows(tail)) case head <> tail: command_rows(tail) 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=cli@0.2.0.0/cli.bend&name=Item https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=Row https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=command_row https://jend.leeeet.dev/definition.txt?path=cli@0.2.0.0/cli.bend&name=has_hidden