Note
This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the user guide for the big picture.
hopla.cli.print_toml¶
- hopla.cli.print_toml(data, title='TOML Configuration')[source]¶
Pretty-print TOML content inside a styled box with colors.
- Parameters:
- datadict
TOML data content.
- titlestr, optional
Title displayed at the top of the box. Default is “TOML Configuration”.
Notes
Uses ANSI escape codes for colors.
Automatically adapts to terminal width (up to 100 characters).
Displays keys in cyan and values in magenta for readability.