tuxemon.cli.formatter module
- class tuxemon.cli.formatter.Formatter[source]
Bases:
object
Print formatted text things.
Currently just supports printing things in a table.
- print_table(header, items, footer, ruler='=', maxcol=120)[source]
Print formatted table with header and footer.
- Parameters:
header (str) – Text to display as a heading.
items (Sequence[str]) – Items to display as a table.
footer (str | None) – Text to display after table.
ruler (str) – Character to use to underline the header.
maxcol (int) – Width of table in characters.
- Return type:
None