nix fmt
All checks were successful
checks-impure / test (pull_request) Successful in 1m28s
checks / test (pull_request) Successful in 2m2s

This commit is contained in:
Luis Hebendanz 2023-12-05 13:41:41 +01:00
parent af441e71d2
commit fcf21093ac
3 changed files with 4 additions and 5 deletions

View File

@ -1,17 +1,15 @@
import argparse
from .app import Application
def join_command(args: argparse.Namespace) -> None:
print("Joining the flake")
print(args.clan_uri)
app = Application()
return app.run()
def register_join_parser(parser: argparse.ArgumentParser) -> None:
parser.add_argument("clan_uri", type=str, help="clan URI to join")
parser.set_defaults(func=join_command)

View File

@ -1,6 +1,5 @@
#!/usr/bin/env python3
import argparse
import sys
from typing import Any

View File

@ -60,8 +60,10 @@ class VMBase:
def run(self) -> None:
print(f"Running VM {self.name}")
from clan_cli import vms
import asyncio
from clan_cli import vms
# raise Exception("Cannot run VMs yet")
vm = asyncio.run(
vms.run.inspect_vm(flake_url=self._path, flake_attr="defaultVM")