From 83c81f878320a6e9d5cb8288fa1e11774d83cf03 Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Tue, 5 May 2020 01:34:35 +0200 Subject: [PATCH] Add a FIXME that executing commands is not black-and-white --- markdownrunner.py | 1 + 1 file changed, 1 insertion(+) diff --git a/markdownrunner.py b/markdownrunner.py index 9eeb50e..ea81569 100755 --- a/markdownrunner.py +++ b/markdownrunner.py @@ -188,6 +188,7 @@ def run_command(cmd: Command): process = subprocess.run(local_command) if process.returncode != 0: # TODO: Print in color (red?) + # FIXME: This kind-of implements 'set -e', but doesn't allow to skip commands in the same hunk answer = input(f"Command {process.args} failed with return code {process.returncode}. Continue? ") if not answer.startswith(('Y', 'y', 'a', 'A')): # We are Czech, so "ano" is a valid answer :-) print("Bailing out")