Table Formatting
Format command output as structured tables with configurable borders, sorting, and field selection.
Crest can automatically format collection-based command output into structured tables. Commands that return Stream, List, Set, or arrays can be annotated with @Table to produce clean tabular output with configurable fields, sorting, borders, and headers.
This section covers the @Table annotation, available border styles, runtime table options, programmatic table building with TableOutput.builder(), and custom cell formatting through PropertyEditor registration.
The @Table Annotation
Annotate commands returning collections with @Table for automatic tabular output with field selection, sorting, and border control.
Border Styles
All available table border styles in Crest, from ASCII and Unicode to CSV and markup formats.
Table Options
Let users override table formatting at runtime with TableOptions and CLI flags.
Programmatic Table Building
Build table output programmatically with TableOutput.builder() for full control over data, fields, sorting, and borders.
Cell Formatting
Control how table cells are rendered using PropertyEditor-based formatting with getAsText().