mirror of
https://git.webmeisterei.com/webmeisterei/todoist-taskwarrior.git
synced 2023-12-21 10:23:00 +01:00
Add quit command in interactive migration
This commit is contained in:
parent
453f8d1e28
commit
6ccde147a2
@ -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,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user