refactor(cli): build and push through one spec and one command object

This commit is contained in:
Hugo Durand
2026-09-18 13:41:35 -04:00
parent ac4198d25b
commit 6063a65bbe
3 changed files with 180 additions and 178 deletions
+8 -2
View File
@@ -1,12 +1,18 @@
import asyncio
import signal
import sys
from collections.abc import Callable
from collections.abc import Callable, Coroutine
from contextlib import contextmanager
from typing import cast
from typing import Any, Protocol, TypeVar, cast
import click.exceptions
_T = TypeVar("_T")
class CommandRunner(Protocol):
def run(self, coro: Coroutine[Any, Any, _T]) -> _T: ...
@contextmanager
def Runner():