Skip to main content

new_table

Function new_table 

Source
pub fn new_table(ctx: &OutputCtx) -> Table
Expand description

Builds a fresh table.

  • For Format::Md we use the ASCII markdown preset (pipes + dashes) so the output can be pasted into a doc.
  • For Format::Table we use a borderless, docker-/kubectl-style layout: no row separators, no outer frame, columns separated by two spaces. Headers get set_header_bold applied at the call site.