|
|
|
@ -122,7 +122,10 @@ def user_action(hunk: Sequence[Command], context=None) -> Sequence[Command]:
|
|
|
|
|
print(stringify_hunk(hunk))
|
|
|
|
|
|
|
|
|
|
# TODO: Print prompt in color (green?)
|
|
|
|
|
answer = input("What to do: edit(e), run(y), skip(n)?")
|
|
|
|
|
answer = input("What to do: edit(e), run(y, default), skip(n)?")
|
|
|
|
|
if answer is None:
|
|
|
|
|
# Default is run, for convenience
|
|
|
|
|
answer = 'Y'
|
|
|
|
|
if answer.startswith(('e', 'E')):
|
|
|
|
|
import tempfile
|
|
|
|
|
with tempfile.NamedTemporaryFile(mode='r+') as tmpfile:
|
|
|
|
|