Skip to content

Commit 9dea2b9

Browse files
committed
fix status json output
1 parent bce9ad9 commit 9dea2b9

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

cycode/cli/apps/status/status_command.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,8 @@
88
def status_command(ctx: typer.Context) -> None:
99
output = ctx.obj['output']
1010

11-
highlight = True
1211
cli_status = get_cli_status()
13-
message = cli_status.as_text()
14-
1512
if output == OutputTypeOption.JSON:
16-
highlight = False
17-
message = cli_status.as_json()
18-
19-
console.print(message, highlight=highlight)
13+
console.print_json(cli_status.as_json())
14+
else:
15+
console.print(cli_status.as_text())

0 commit comments

Comments
 (0)