import os
from flask.cli import main as flask_main


def main():
    # Set the FLASK_APP environment variable to point to your Flask app.
    # Here 'app' is the package name where your Flask application factory (or app instance) is defined.
    os.environ.setdefault('FLASK_APP', 'wurker.ui:create_app')

    # Optional: you can set FLASK_ENV if you want to run in development mode.
    os.environ.setdefault('FLASK_ENV', 'development')

    # Invoke Flask's CLI runner.
    flask_main()
