LEEETS GOOOO <50 lines !!1

- Ping / API key checks are back! #13
- Changes in config import
- Moved everything in main to menu loop because of reasons  #2
- New function check_config
- Currently selected pools / vms .. are shown in main menu #12
- Renamed a few functions
This commit is contained in:
OVERLORD7F
2025-05-28 12:45:07 +03:00
parent 2ccde25b6e
commit 3ca5404b81
6 changed files with 45 additions and 50 deletions

View File

@@ -43,7 +43,7 @@ def check_api_key(base_url, api_key): # test api key and show spaceVM version
if response.status_code == 200:
cluster_info = response.json()
version = cluster_info['version']
console.print(f"[bold green]Successfully conected to SpaceVM version {version}")
console.print(f"[bold green]Successfully conected to SpaceVM v{version}")
else:
console.print(f"[bold red]{response.status_code}[/]")
return response.status_code