From 48828ae25ff4dbf961a40502c7fe761076d98888 Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Thu, 20 Feb 2025 14:46:15 +0100 Subject: just-lock: Allow input argument for method running commands --- bin/just-lock.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/just-lock.py b/bin/just-lock.py index b0ef5340..c47937c0 100755 --- a/bin/just-lock.py +++ b/bin/just-lock.py @@ -139,6 +139,7 @@ def run_cmd( env: Optional[Any] = None, stdout: Optional[Any] = subprocess.DEVNULL, stdin: Optional[Any] = None, + input: Optional[bytes] = None, cwd: str, attempts: int = 1, fail_context: Optional[str] = None, @@ -152,7 +153,8 @@ def run_cmd( cwd=cwd, env=env, stdout=stdout, - stdin=stdin) + stdin=stdin, + input=input) if result.returncode == 0: return result.stdout, result.returncode # return successful result if fail_context is not None: -- cgit v1.2.3