nix fmt
This commit is contained in:
parent
af441e71d2
commit
fcf21093ac
@ -1,17 +1,15 @@
|
|||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
|
|
||||||
from .app import Application
|
from .app import Application
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def join_command(args: argparse.Namespace) -> None:
|
def join_command(args: argparse.Namespace) -> None:
|
||||||
print("Joining the flake")
|
print("Joining the flake")
|
||||||
print(args.clan_uri)
|
print(args.clan_uri)
|
||||||
app = Application()
|
app = Application()
|
||||||
return app.run()
|
return app.run()
|
||||||
|
|
||||||
|
|
||||||
def register_join_parser(parser: argparse.ArgumentParser) -> None:
|
def register_join_parser(parser: argparse.ArgumentParser) -> None:
|
||||||
parser.add_argument("clan_uri", type=str, help="clan URI to join")
|
parser.add_argument("clan_uri", type=str, help="clan URI to join")
|
||||||
parser.set_defaults(func=join_command)
|
parser.set_defaults(func=join_command)
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import argparse
|
|
||||||
import sys
|
import sys
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
|
@ -60,8 +60,10 @@ class VMBase:
|
|||||||
|
|
||||||
def run(self) -> None:
|
def run(self) -> None:
|
||||||
print(f"Running VM {self.name}")
|
print(f"Running VM {self.name}")
|
||||||
from clan_cli import vms
|
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
||||||
|
from clan_cli import vms
|
||||||
|
|
||||||
# raise Exception("Cannot run VMs yet")
|
# raise Exception("Cannot run VMs yet")
|
||||||
vm = asyncio.run(
|
vm = asyncio.run(
|
||||||
vms.run.inspect_vm(flake_url=self._path, flake_attr="defaultVM")
|
vms.run.inspect_vm(flake_url=self._path, flake_attr="defaultVM")
|
||||||
|
Loading…
Reference in New Issue
Block a user