File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,7 @@ def run(
149
149
no_output_timeout_secs : int | None = None ,
150
150
capture : bool = False ,
151
151
interactive : bool = False ,
152
+ ** kwargs ,
152
153
) -> CompletedProcess [str ]:
153
154
"""
154
155
Run a subprocess.
@@ -160,6 +161,7 @@ def run(
160
161
no_output_timeout_secs = no_output_timeout_secs ,
161
162
capture = capture ,
162
163
interactive = interactive ,
164
+ ** kwargs ,
163
165
)
164
166
165
167
@contextmanager
Original file line number Diff line number Diff line change @@ -206,10 +206,10 @@ async def _subprocess_run(
206
206
no_output_timeout_secs : int | None = None ,
207
207
capture : bool = False ,
208
208
interactive : bool = False ,
209
+ ** kwargs ,
209
210
):
210
211
stdout = subprocess .PIPE
211
212
stderr = subprocess .PIPE
212
- kwargs = {}
213
213
if interactive is False :
214
214
# Run in a separate program group
215
215
if sys .platform .startswith ("win" ):
@@ -249,6 +249,7 @@ def run(
249
249
no_output_timeout_secs : int | None = None ,
250
250
capture : bool = False ,
251
251
interactive : bool = False ,
252
+ ** kwargs ,
252
253
) -> subprocess .CompletedProcess [str ]:
253
254
"""
254
255
Run a command.
@@ -265,6 +266,7 @@ def run(
265
266
no_output_timeout_secs = no_output_timeout_secs ,
266
267
capture = capture ,
267
268
interactive = interactive ,
269
+ ** kwargs ,
268
270
)
269
271
)
270
272
result = future .result ()
You can’t perform that action at this time.
0 commit comments