def start_todo():
# click.echo(click.style("\n[1] Create new list of todo.", fg ='white', bold = True))
# click.echo(click.style("[2] Add items to your category", fg ='white', bold = True))
# click.echo(click.style("[q] Quit.", fg ='white', bold = True))
choice = str(click.prompt(click.style('>>>', fg = 'cyan', bold = True)))
while choice != 'q':
# Respond to the user's choice.
if 'create todo' in choice:
print 'creating'
elif 'open todo' in choice:
print 'openning'
elif 'list todo' in choice:
print 'listing'
elif choice:
exit_todo()
else:
click.echo("\nTry again\n")
###LOOPING FUNCTIONS ###
评论列表
文章目录