lib.ExecContext.__init__(): Add parameter uri

Take a positional uri argument to the constructor of ExecContext,
forcing SSHClient to follow suit. The latter was instantiated with a
hostname as only argument up to now, which still works as a special
case of an uri.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2026-03-18 07:09:01 +01:00
commit 888c1e7f16
3 changed files with 20 additions and 10 deletions

View file

@ -11,6 +11,9 @@ from ..util import pretty_cmd
class Local(Base):
def __init__(self, uri='local', *args, **kwargs) -> None:
super().__init__(uri, *args, **kwargs)
async def _run(
self,
args: list[str],