Merge pull request 'API Improvements' (#4276) from api-cleanup into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4276
This commit is contained in:
@@ -18,7 +18,7 @@ class FlashOptions(TypedDict):
|
||||
|
||||
|
||||
@API.register
|
||||
def get_flash_options() -> FlashOptions:
|
||||
def get_machine_flash_options() -> FlashOptions:
|
||||
"""Retrieve available languages and keymaps for flash configuration.
|
||||
Returns:
|
||||
FlashOptions: A dictionary containing lists of available languages and keymaps.
|
||||
|
||||
@@ -9,7 +9,7 @@ from clan_lib.machines.actions import list_machines
|
||||
from clan_lib.machines.list import instantiate_inventory_to_machines
|
||||
from clan_lib.machines.machines import Machine
|
||||
from clan_lib.machines.suggestions import validate_machine_names
|
||||
from clan_lib.machines.update import run_machine_deploy
|
||||
from clan_lib.machines.update import run_machine_update
|
||||
from clan_lib.nix import nix_config
|
||||
from clan_lib.ssh.remote import Remote
|
||||
|
||||
@@ -144,7 +144,7 @@ def update_command(args: argparse.Namespace) -> None:
|
||||
tid=machine.name,
|
||||
async_ctx=AsyncContext(prefix=machine.name),
|
||||
),
|
||||
run_machine_deploy,
|
||||
run_machine_update,
|
||||
machine=machine,
|
||||
target_host=target_host,
|
||||
build_host=machine.build_host(),
|
||||
|
||||
Reference in New Issue
Block a user