- Beggining of implementing new menus and text using "Rich" library

btw main.py is ~ 50 lines now 0_o
This commit is contained in:
OVERLORD7F
2025-05-16 17:53:57 +03:00
parent da756a8ba6
commit d7477da9b6
6 changed files with 65 additions and 34 deletions

View File

@@ -1,6 +1,8 @@
#from main import base_url , api_key , requests
import requests
import os
from rich.prompt import Prompt
def cluster_info(base_url , api_key): #output short clusters overview
url= f"http://{base_url}/api/clusters"
@@ -23,4 +25,6 @@ def cluster_info(base_url , api_key): #output short clusters overview
print("-" * 51)
else:
print(f"Failed to retrieve data {response.status_code}")
print(f"Failed to retrieve data {response.status_code}")
Prompt.ask("[green_yellow bold]Press ENTER to proceed.. :right_arrow_curving_down:")
os.system('cls' if os.name=='nt' else 'clear')