maestral.cli.output
#
This module provides classes and methods for beautifully formatted output to stdout. This includes printing tables and grids, formatting dates and eliding strings.
Module Contents#
- maestral.cli.output.rich_table(*headers)[source]#
- Parameters:
headers (rich.table.Column | str) –
- Return type:
rich.table.Table
- class maestral.cli.output.RichDateField(dt, style='')[source]#
A datetime renderable.
- Parameters:
dt (datetime.datetime) –
style (str | rich.style.Style) –
- maestral.cli.output.info(message, nl=True)[source]#
Print an info message to stdout. Will be prefixed with a dash.
- maestral.cli.output.warn(message, nl=True)[source]#
Print a warning to stdout. Will be prefixed with an exclamation mark.