mirror of
https://git.webmeisterei.com/webmeisterei/todoist-taskwarrior.git
synced 2023-12-21 10:23:00 +01:00
Rename task_prompt() -> add_task_interactive()
This commit is contained in:
parent
4f3402409a
commit
176ee0119c
@ -84,7 +84,7 @@ def migrate(ctx, interactive, sync):
|
|||||||
elif not interactive:
|
elif not interactive:
|
||||||
add_task(**data)
|
add_task(**data)
|
||||||
else:
|
else:
|
||||||
task_prompt(**data)
|
add_task_interactive(**data)
|
||||||
|
|
||||||
|
|
||||||
def check_task_exists(tid):
|
def check_task_exists(tid):
|
||||||
@ -111,7 +111,7 @@ def add_task(tid, name, project, tags, priority, entry, due, recur):
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def task_prompt(**task_data):
|
def add_task_interactive(**task_data):
|
||||||
"""Interactively add tasks
|
"""Interactively add tasks
|
||||||
|
|
||||||
y - add task
|
y - add task
|
||||||
@ -166,7 +166,7 @@ def task_prompt(**task_data):
|
|||||||
# task_data unchanged.
|
# task_data unchanged.
|
||||||
'?': lambda: io.warn('\n'.join([
|
'?': lambda: io.warn('\n'.join([
|
||||||
x.strip() for x in
|
x.strip() for x in
|
||||||
task_prompt.__doc__.split('\n')
|
add_task_interactive.__doc__.split('\n')
|
||||||
])) or task_data,
|
])) or task_data,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user