feat(diagnose): Update Consul client to fetch health check output and display diagnostics

This commit is contained in:
2026-02-08 07:44:22 -08:00
parent 3c4c1c4d80
commit 7c0c146d0c
5 changed files with 112 additions and 2 deletions

View File

@@ -25,6 +25,11 @@ def main():
print(output_formatter.format_summary(cluster_data, use_color=not args.no_color))
print("\n" + output_formatter.format_node_table(cluster_data["nodes"], use_color=not args.no_color))
# Diagnostics
diagnostics = output_formatter.format_diagnostics(cluster_data["nodes"], use_color=not args.no_color)
if diagnostics:
print(diagnostics)
except Exception as e:
print(f"Error: {e}", file=sys.stderr)
sys.exit(1)