Skip to content

Commit 8855627

Browse files
committed
chore(run): Add *args, **kwargs passthrough to subprocess.Popen
1 parent b7bde3b commit 8855627

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libvcs/_internal/run.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ def run(
150150
log_in_real_time: bool = True,
151151
check_returncode: bool = True,
152152
callback: Optional[ProgressCallbackProtocol] = None,
153+
*args,
154+
**kwargs
153155
):
154156
"""Run 'cmd' in a shell and return the combined contents of stdout and
155157
stderr (Blocking). Throws an exception if the command exits non-zero.
@@ -192,6 +194,8 @@ def progress_cb(output, timestamp):
192194
stderr=subprocess.PIPE,
193195
stdout=subprocess.PIPE,
194196
cwd=cwd,
197+
*args,
198+
**kwargs
195199
)
196200

197201
all_output = []

0 commit comments

Comments
 (0)