clan-cli: Replace HostGroup and MachineGroup with generic AsyncRuntime class. Propagate cmd prefix over thread local. Close threads on CTRL+C

This commit is contained in:
Qubasa
2024-12-09 18:07:23 +01:00
parent f30e9fed9b
commit 65a5789c5b
18 changed files with 549 additions and 436 deletions

View File

@@ -49,7 +49,7 @@ def nix_add_to_gcroots(nix_path: Path, dest: Path) -> None:
def nix_config() -> dict[str, Any]:
cmd = nix_command(["show-config", "--json"])
cmd = nix_command(["config", "show", "--json"])
proc = run_no_stdout(cmd)
data = json.loads(proc.stdout)
config = {}