mirror of
https://github.com/OVERLORD7F/SVMU.git
synced 2025-10-01 21:52:47 +03:00
- Beggining of implementing new menus and text using "Rich" library
btw main.py is ~ 50 lines now 0_o
This commit is contained in:
@@ -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')
|
Reference in New Issue
Block a user