diff --git a/CHANGELOG b/CHANGELOG index 489e121..f6cc588 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,11 @@ # Changelog +## Version 2.15.0 + +(released on 2026-05-16) + +- Add `mysql_heavy` table format. + ## Version 2.14.0 (released on 2026-04-13) diff --git a/cli_helpers/tabular_output/tabulate_adapter.py b/cli_helpers/tabular_output/tabulate_adapter.py index 0b638df..94f7bb2 100644 --- a/cli_helpers/tabular_output/tabulate_adapter.py +++ b/cli_helpers/tabular_output/tabulate_adapter.py @@ -92,6 +92,17 @@ with_header_hide=None, ) +tabulate._table_formats["mysql_heavy"] = tabulate.TableFormat( + lineabove=tabulate.Line("┏", "━", "┳", "┓"), + linebelowheader=tabulate.Line("┣", "━", "╋", "┫"), + linebetweenrows=None, + linebelow=tabulate.Line("┗", "━", "┻", "┛"), + headerrow=tabulate.DataRow("┃", "┃", "┃"), + datarow=tabulate.DataRow("┃", "┃", "┃"), + padding=1, + with_header_hide=None, +) + # "minimal" is the same as "plain", but without headers tabulate._table_formats["minimal"] = tabulate._table_formats["plain"] @@ -128,6 +139,7 @@ "double", "mysql", "mysql_unicode", + "mysql_heavy", ) supported_formats = supported_markup_formats + supported_table_formats