V 1.0 - Only Prints

This commit is contained in:
Hannes committed 2026-03-20 00:46:36 +01:00
commit e00fa1ca80
15 files changed
+1045

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
import subprocess
from typing import Optional, List
def run(cmd: subprocess._CMD) -> subprocess.CompletedProcess[str]:
"""
Run a subprocess command.
Args:
cmd: Command and arguments as a list.
Raises:
subprocess.CalledProcessError: If the command exits with a non-zero status.
"""
try:
result = subprocess.run(
cmd,
check=True,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
text=True
)
return result
except subprocess.CalledProcessError as e:
print(e.stdout)
raise