Refactor(cli/list_machines): rename to list_full_machines

This makes it clear that this should be used with care
It is potentially more expensive to create the full object, therefore it should be discouraged by its longer name
This listing is implemented based on the basic listing, where each item is turned into the bigger machine class
This commit is contained in:
Johannes Kirschbauer
2025-06-09 13:40:46 +02:00
parent 0b6bc81efe
commit 665b2095b2
7 changed files with 23 additions and 21 deletions

View File

@@ -18,8 +18,8 @@ def list_machines(flake: Flake) -> dict[str, InventoryMachine]:
inventory_store = InventoryStore(flake=flake)
inventory = inventory_store.read()
machine = inventory.get("machines", {})
return machine
machines = inventory.get("machines", {})
return machines
@API.register