Pretty print config using the rich library.
(cfg)
| 84 | |
| 85 | |
| 86 | def pretty_print_config(cfg): |
| 87 | """Pretty print config using the rich library.""" |
| 88 | console = Console() |
| 89 | config_str = cfg.pretty_text |
| 90 | syntax = Syntax(config_str, |
| 91 | 'python', |
| 92 | theme='solarized-dark', |
| 93 | line_numbers=True) |
| 94 | console.print(syntax) |