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 57e71e6c66
commit 2685db33d7
7 changed files with 23 additions and 21 deletions

View File

@@ -14,7 +14,7 @@ from clan_cli.completions import (
complete_machines,
complete_services_for_machine,
)
from clan_cli.machines.list import list_machines
from clan_cli.machines.list import list_full_machines
from clan_cli.vars._types import StoreBase
from clan_cli.vars.migration import check_can_migrate, migrate_files
from clan_lib.api import API
@@ -511,7 +511,7 @@ def generate_command(args: argparse.Namespace) -> None:
msg = "Could not find clan flake toplevel directory"
raise ClanError(msg)
machines: list[Machine] = list(list_machines(args.flake, args.option).values())
machines: list[Machine] = list(list_full_machines(args.flake, args.option).values())
if len(args.machines) > 0:
machines = list(