def main():
"""Displays all projects
If command line arguments are used, they are passed on to click to process,
if not, then all of the projects currently being worked on are displayed.
"""
try:
db.connect()
except OperationalError:
pass
try:
db.create_tables([Log, Project], True)
except OperationalError:
pass
else:
if len(argv) > 1:
cli()
else:
_ = get_projects(display=True)
finally:
db.close()
评论列表
文章目录