Inventory: add load_eval method

This commit is contained in:
Johannes Kirschbauer
2024-07-23 11:31:34 +02:00
parent 75bdf3debc
commit 871fa8f1ff
7 changed files with 58 additions and 28 deletions

View File

@@ -6,7 +6,7 @@ from pathlib import Path
from clan_cli.cmd import run_no_stdout
from clan_cli.errors import ClanCmdError, ClanError
from clan_cli.inventory import Inventory, load_inventory
from clan_cli.inventory import Inventory, load_inventory_json
from clan_cli.nix import nix_eval
from . import API
@@ -152,4 +152,4 @@ def get_module_info(
@API.register
def get_inventory(base_path: str) -> Inventory:
return load_inventory(base_path)
return load_inventory_json(base_path)