Add quit command in interactive migration

This commit is contained in:
Matt Snider 2019-03-23 21:15:14 +01:00
parent 453f8d1e28
commit 6ccde147a2

View File

@ -97,6 +97,7 @@ def task_prompt(**task_data):
r - rename task r - rename task
p - change priority p - change priority
t - change tags t - change tags
q - quit immediately
? - print help ? - print help
""" """
callbacks = { callbacks = {
@ -121,6 +122,9 @@ def task_prompt(**task_data):
'priority': priority_prompt(task_data['priority']), 'priority': priority_prompt(task_data['priority']),
}, },
# Quit
'q': lambda: exit(1),
# Help message # Help message
'?': lambda: task_prompt_help() or task_data, '?': lambda: task_prompt_help() or task_data,
} }