fix(services): route a service remote from services.<TAG>.dl.remote

Click picks the subcommand before the dl callback applies the service config, so Services.resolve_command now applies remote and server first. A REST API job routes from its request only.
This commit is contained in:
imSp4rky
2026-10-19 14:19:07 -06:00
parent 4728ac593c
commit 3aaf9c4107
8 changed files with 208 additions and 21 deletions
@@ -22,7 +22,7 @@ SERVED = [
def _make(name: str) -> click.Command:
return Services.make_remote_command(name, ctx=click.Context(click.Command("dl")))
return Services.make_remote_command(name, None)
def test_unknown_name_raises_with_typed_name_and_available_list() -> None: