diff --git a/application/script/cmdline.py b/application/script/cmdline.py index 913dca2879cc99efae86f44ff5475675d4daa6ed..3646d47148a991ea1fb6c398be19abed3fa73dbf 100644 --- a/application/script/cmdline.py +++ b/application/script/cmdline.py @@ -7,9 +7,10 @@ # @Email : StudentCWZ@outlook.com # @Date : 2023/10/29 11:21 # @File : cmdline.py -# @Description : +# @Description : Defines the initial command line interface for the Flask application. """ +# Import third-party modules import click from flask.cli import with_appcontext @@ -17,9 +18,14 @@ from flask.cli import with_appcontext @click.command("init") @with_appcontext def init(): - """Create a new log""" + """ + Initialize the application by creating a new log entry. + + This command is to be used with the Flask application context. + """ from application.extensions.init_sqlalchemy import db + # Uncomment below lines to create a new log entry. # click.echo("create log") # db.session.add(user) # db.session.commit()