forked from clan/clan-core
nix fmt
This commit is contained in:
parent
af441e71d2
commit
fcf21093ac
@ -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)
|
||||
|
@ -1,6 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import argparse
|
||||
import sys
|
||||
from typing import Any
|
||||
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user