nix fmt
This commit is contained in:
@@ -42,14 +42,14 @@ class VMBase:
|
||||
|
||||
def run(self) -> None:
|
||||
print(f"Running VM {self.name}")
|
||||
vm = asyncio.run(vms.run.inspect_vm(flake_url=self._path, flake_attr="defaultVM"))
|
||||
vm = asyncio.run(
|
||||
vms.run.inspect_vm(flake_url=self._path, flake_attr="defaultVM")
|
||||
)
|
||||
task = vms.run.run_vm(vm)
|
||||
for line in task.log_lines():
|
||||
print(line, end="")
|
||||
|
||||
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class VM(VMBase):
|
||||
autostart: bool = False
|
||||
@@ -89,7 +89,6 @@ def list_vms() -> list[VM]:
|
||||
),
|
||||
]
|
||||
|
||||
|
||||
# TODO: list_history() should return a list of dicts, not a list of paths
|
||||
# Execute `clan flakes add <path>` to democlan for this to work
|
||||
for path in clan_cli.flakes.history.list_history():
|
||||
|
||||
@@ -50,6 +50,7 @@ class ClanSelectPage(Gtk.Box):
|
||||
print(f"on_double_click: {vm}")
|
||||
vm.run()
|
||||
|
||||
|
||||
class ClanSelectButtons(Gtk.Box):
|
||||
def __init__(
|
||||
self,
|
||||
|
||||
Reference in New Issue
Block a user