We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bce9ad9 commit 9dea2b9Copy full SHA for 9dea2b9
cycode/cli/apps/status/status_command.py
@@ -8,12 +8,8 @@
8
def status_command(ctx: typer.Context) -> None:
9
output = ctx.obj['output']
10
11
- highlight = True
12
cli_status = get_cli_status()
13
- message = cli_status.as_text()
14
-
15
if output == OutputTypeOption.JSON:
16
- highlight = False
17
- message = cli_status.as_json()
18
19
- console.print(message, highlight=highlight)
+ console.print_json(cli_status.as_json())
+ else:
+ console.print(cli_status.as_text())
0 commit comments