Skip to content

Commit

Permalink
CTX-6562: Changes regarding discussions on PR.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan Tintor committed Aug 20, 2024
1 parent 30115cd commit bd8eb98
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion coretex/cli/commands/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,16 @@ def config(advanced: bool) -> None:

@click.command()
def status() -> None:
ui.stdEcho(f"Current status of Node is {getNodeStatus().name}.")
nodeStatus = getNodeStatus()
statusColors = {
'inactive': ui.errorEcho,
'active': ui.successEcho,
'busy': ui.progressEcho,
'reconnecting': ui.progressEcho
}

echo = statusColors.get(nodeStatus.name, ui.stdEcho)
echo(f"Current status of Node is {nodeStatus.name}.")


@click.group()
Expand Down

0 comments on commit bd8eb98

Please sign in to comment.