Skip to content

Commit

Permalink
Use rich to print config JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
gizmo385 committed Sep 20, 2024
1 parent 73f426e commit 84e8d93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lazy_github/cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import click
import rich

from lazy_github.lib.config import _CONFIG_FILE_LOCATION, Config
from lazy_github.ui.app import app
Expand All @@ -21,7 +22,7 @@ def run():
def dump_config():
"""Dump the current configuration, as it would be loaded by LazyGithub"""
print(f"Config file location: {_CONFIG_FILE_LOCATION} (exists => {_CONFIG_FILE_LOCATION.exists()})")
print(Config.load_config().model_dump_json(indent=4))
rich.print_json(Config.load_config().model_dump_json())


@cli.command
Expand Down

0 comments on commit 84e8d93

Please sign in to comment.