diff --git a/src/python/jw/pkg/cmds/distro/backend/Backend.py b/src/python/jw/pkg/cmds/distro/backend/Backend.py index fec5c6f9..4f5c057e 100644 --- a/src/python/jw/pkg/cmds/distro/backend/Backend.py +++ b/src/python/jw/pkg/cmds/distro/backend/Backend.py @@ -13,8 +13,8 @@ class Backend: def __init__(self, parent: Cmd): self.__parent = parent - async def _sudo(self, cmd: list[str], mod_env: dict[str, str] = {}, opts: list[str]=[]): - return await run_sudo(cmd, mod_env=mod_env, opts=opts, interactive=self.interactive) + async def _sudo(self, *args, **kwargs): + return await run_sudo(*args, interactive=self.interactive, **kwargs) @property def util(self): diff --git a/src/python/jw/pkg/cmds/distro/backend/Util.py b/src/python/jw/pkg/cmds/distro/backend/Util.py index 4ce63934..962c157b 100644 --- a/src/python/jw/pkg/cmds/distro/backend/Util.py +++ b/src/python/jw/pkg/cmds/distro/backend/Util.py @@ -13,8 +13,8 @@ class Util: def __init__(self, parent: Cmd): self.__parent = parent - async def _sudo(self, cmd: list[str], mod_env: dict[str, str] = {}, opts: list[str]=[]): - return await run_sudo(cmd, mod_env=mod_env, opts=opts, interactive=self.interactive) + async def _sudo(self, *args, **kwargs): + return await run_sudo(*args, interactive=self.interactive, **kwargs) @property def parent(self):