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
1 changed files with 4 additions and 0 deletions

View File

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