clan-cli: Refactor subprocess.run to cmd.run. tea-create-pr: Fix missing fail-on-change for treefmt

This commit is contained in:
Qubasa
2024-06-02 09:53:24 +02:00
parent 5ed929ca31
commit 44660056f1
4 changed files with 32 additions and 17 deletions

View File

@@ -32,6 +32,7 @@ def read_multiline_input(prompt: str = "Finish with Ctrl-D") -> str:
"""
print(prompt, flush=True)
proc = subprocess.run(["cat"], stdout=subprocess.PIPE, text=True)
log.info("Input received. Processing...")
return proc.stdout