|
|
@ -122,7 +122,10 @@ def user_action(hunk: Sequence[Command], context=None) -> Sequence[Command]:
|
|
|
|
print(stringify_hunk(hunk))
|
|
|
|
print(stringify_hunk(hunk))
|
|
|
|
|
|
|
|
|
|
|
|
# TODO: Print prompt in color (green?)
|
|
|
|
# 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')):
|
|
|
|
if answer.startswith(('e', 'E')):
|
|
|
|
import tempfile
|
|
|
|
import tempfile
|
|
|
|
with tempfile.NamedTemporaryFile(mode='r+') as tmpfile:
|
|
|
|
with tempfile.NamedTemporaryFile(mode='r+') as tmpfile:
|
|
|
|