List VMs and LXC containers from the current cv4pve-cli context and start, shutdown, stop and reboot them, change cores and memory, and grow disks. The app shells out to `cv4pve-cli -o json` and stores no credentials. - Every mutating call uses --wait: without it cv4pve-cli exits 0 even when the task fails. - shutdown, stop and reboot need confirmation; disk growth is increment-only and asks again because it cannot be undone. - After an action the acted-on guest's status is read from status/current, because /cluster/resources lags a few seconds. - Notifies when a cores/memory change is pending until reboot. Tests mock cv4pve-cli (85 tests). Live-tested edit, shutdown, start and reboot on CT 104 (mainframe), restored afterwards; disk resize was not run live. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
22 lines
461 B
TOML
22 lines
461 B
TOML
[project]
|
|
name = "cv4pve-tui"
|
|
version = "0.1.0"
|
|
description = "Textual TUI for cv4pve-cli: manage Proxmox VE guests"
|
|
readme = "README.md"
|
|
requires-python = ">=3.12"
|
|
dependencies = ["textual>=8.2"]
|
|
|
|
[project.scripts]
|
|
cv4pve-tui = "cv4pve_tui.app:main"
|
|
|
|
[dependency-groups]
|
|
dev = ["pytest>=8", "pytest-asyncio>=1.0"]
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
asyncio_mode = "auto"
|