def roff_commands

cli@0.2.0.0 · cli.bend:7478

import cli@0.2.0.0/cli.bend as Cli
import Base

7478def roff_commands(items: List<&2, Item>, +page: String) -> List<&2, String>:
7479  match items:
7480    case Nil{}: Nil{}
7481    case Sub{name, about, +children} <> tail:
7482      List.append(&2, String,
7483        roff_command(has_hidden(children), page, name, about, children),
7484        roff_commands(tail, page))
7485    case head <> tail: roff_commands(tail, page)

Uses (6)

Used by (1)