pub fn commands(doc: &Document) -> Vec<Command>
One subcommand per group, in document order, holding the operations under it in document order.