run/line
This commit is contained in:
parent
c024c553b0
commit
0e2b638bbb
1 changed files with 2 additions and 2 deletions
|
@ -25,8 +25,8 @@ def run(*items: str | tuple[str]) -> subprocess.CompletedProcess:
|
||||||
|
|
||||||
def run_line(*items: str | tuple[str], charset: str = txt.CHARSET) -> str:
|
def run_line(*items: str | tuple[str], charset: str = txt.CHARSET) -> str:
|
||||||
"""Run and return output line."""
|
"""Run and return output line."""
|
||||||
lines = run_lines(*items, charset=charset)
|
line, *_ = run_lines(*items, charset=charset)
|
||||||
return lines[0]
|
return line
|
||||||
|
|
||||||
|
|
||||||
def run_lines(
|
def run_lines(
|
||||||
|
|
Loading…
Reference in a new issue