fix
This commit is contained in:
parent
4414a9a712
commit
3ce03d17c1
1 changed files with 6 additions and 2 deletions
|
@ -14,7 +14,9 @@ def get_tuples_args(tuples) -> list[str]:
|
||||||
|
|
||||||
|
|
||||||
def run(*tuples) -> subprocess.CompletedProcess:
|
def run(*tuples) -> subprocess.CompletedProcess:
|
||||||
return subprocess.run(get_tuples_args(tuples), capture_output=False, check=True)
|
return subprocess.run(
|
||||||
|
get_tuples_args(tuples), capture_output=False, check=True
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def run_line(*tuples, charset: str = txt.CHARSET) -> str:
|
def run_line(*tuples, charset: str = txt.CHARSET) -> str:
|
||||||
|
@ -23,6 +25,8 @@ def run_line(*tuples, charset: str = txt.CHARSET) -> str:
|
||||||
|
|
||||||
|
|
||||||
def run_lines(*tuples, charset: str = txt.CHARSET) -> list[str]:
|
def run_lines(*tuples, charset: str = txt.CHARSET) -> list[str]:
|
||||||
process = subprocess.run(get_tuples_args(tuples), capture_output=True, check=True)
|
process = subprocess.run(
|
||||||
|
get_tuples_args(tuples), capture_output=True, check=True
|
||||||
|
)
|
||||||
string = process.stdout.decode(charset)
|
string = process.stdout.decode(charset)
|
||||||
return string.rstrip().splitlines()
|
return string.rstrip().splitlines()
|
||||||
|
|
Loading…
Reference in a new issue