def command_rows
import cli@0.2.0.0/cli.bend as Cliimport Base
5427def command_rows(items: List<&2, Item>) -> List<&2, Row>:
5428 match items:
5429 case Nil{}: Nil{}
5430 case Sub{name, about, +children} <> tail:
5431 List.append(&2, Row,
5432 command_row(has_hidden(children), name, about, children),
5433 command_rows(tail))
5434 case head <> tail: command_rows(tail)