Skip to main content

Module table

Module table 

Source
Expand description

Table rendering helpers (compact and record styles via tabled). Table rendering helpers for command output.

Provides two table styles — compact (no internal lines) and record (detail row spanning all columns) — both using rounded borders and auto-sized to terminal width.

Structs§

Builder
Builder creates a Table from dynamic data set.

Functions§

style_compact
Apply compact table style: rounded borders, no internal horizontal lines, stretched to terminal width.
style_record
Apply record table style: rounded borders, second row spans all columns (for multi-line detail text), stretched to terminal width.
term_width
Detect terminal width, falling back to 80 columns.