format code..
This commit is contained in:
@@ -19,7 +19,5 @@ def _parse_command(command: str) -> list[str]:
|
|||||||
|
|
||||||
def _execute(command: str, stdin: Optional[str] = None) -> subprocess.CompletedProcess:
|
def _execute(command: str, stdin: Optional[str] = None) -> subprocess.CompletedProcess:
|
||||||
parsed_command = _parse_command(command)
|
parsed_command = _parse_command(command)
|
||||||
result = subprocess.run(
|
result = subprocess.run(parsed_command, input=stdin, text=True, capture_output=True, shell=True)
|
||||||
parsed_command, input=stdin, text=True, capture_output=True, shell=True
|
|
||||||
)
|
|
||||||
return result
|
return result
|
||||||
|
|||||||
Reference in New Issue
Block a user