mirror of
https://ak-git.vectorsigma.ru/terghalin/metalcheck.git
synced 2026-02-21 13:10:29 +09:00
fix(pseudo): color
This commit is contained in:
@@ -33,7 +33,7 @@ def display_metal_nodes():
|
||||
table = Table(title="🖥️ Metal Nodes", style="bold green")
|
||||
table.add_column("ID", justify="right", style="cyan")
|
||||
table.add_column("Name", style="magenta")
|
||||
table.add_column("Location", style="blue")
|
||||
table.add_column("Location", style="white")
|
||||
table.add_column("Vendor", style="green")
|
||||
table.add_column("CPU", justify="right", style="yellow")
|
||||
table.add_column("Memory (GB)", justify="right", style="cyan")
|
||||
@@ -58,7 +58,7 @@ def display_virtual_machines():
|
||||
table = Table(title="💻 Virtual Machines", style="bold blue")
|
||||
table.add_column("ID", justify="right", style="cyan")
|
||||
table.add_column("Name", style="magenta")
|
||||
table.add_column("Location", style="blue")
|
||||
table.add_column("Location", style="white")
|
||||
table.add_column("CPU", justify="right", style="yellow")
|
||||
table.add_column("Memory (GB)", justify="right", style="cyan")
|
||||
table.add_column("Storage", style="magenta")
|
||||
@@ -84,7 +84,7 @@ def display_kubernetes_nodes():
|
||||
v1 = client.CoreV1Api()
|
||||
|
||||
table = Table(title="📦 Kubernetes Nodes", style="bold yellow")
|
||||
table.add_column("Node Name", style="blue")
|
||||
table.add_column("Node Name", style="white")
|
||||
table.add_column("CPU", justify="right", style="yellow")
|
||||
table.add_column("Memory (MiB)", justify="right", style="cyan")
|
||||
table.add_column("Pods Allocatable", justify="right", style="green")
|
||||
@@ -106,7 +106,7 @@ def display_namespace_usage():
|
||||
metrics_client = client.CustomObjectsApi()
|
||||
|
||||
table = Table(title="📊 Namespace Resource Usage", style="bold magenta")
|
||||
table.add_column("Namespace", style="blue")
|
||||
table.add_column("Namespace", style="white")
|
||||
table.add_column("CPU (Cores)", justify="right", style="yellow")
|
||||
table.add_column("Memory (MiB)", justify="right", style="cyan")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user