Added clan flakes inspect command. Improved ClanURI. Added democlan as dependency in flake.nix

This commit is contained in:
Qubasa
2023-12-09 00:04:56 +01:00
parent 91ca79be0d
commit 4506202a82
14 changed files with 406 additions and 41 deletions

View File

@@ -30,6 +30,7 @@ def inspect_vm(flake_url: str | Path, flake_attr: str) -> VmConfig:
f'{flake_url}#clanInternals.machines."{system}"."{flake_attr}".config.system.clan.vm.config'
]
)
proc = subprocess.run(cmd, check=True, text=True, stdout=subprocess.PIPE)
assert proc.stdout is not None
if proc.returncode != 0:
@@ -65,5 +66,5 @@ def inspect_command(args: argparse.Namespace) -> None:
def register_inspect_parser(parser: argparse.ArgumentParser) -> None:
parser.add_argument("machine", type=str)
parser.add_argument("machine", type=str, default="defaultVM")
parser.set_defaults(func=inspect_command)