MCPcopy
hub / github.com/pallets/flask / show_server_banner

Function show_server_banner

src/flask/cli.py:774–785  ·  view source on GitHub ↗

Show extra startup messages the first time the server is run, ignoring the reloader.

(debug: bool, app_import_path: str | None)

Source from the content-addressed store, hash-verified

772
773
774def show_server_banner(debug: bool, app_import_path: str | None) -> None:
775 """Show extra startup messages the first time the server is run,
776 ignoring the reloader.
777 """
778 if is_running_from_reloader():
779 return
780
781 if app_import_path is not None:
782 click.echo(f" * Serving Flask app '{app_import_path}'")
783
784 if debug is not None:
785 click.echo(f" * Debug mode: {'on' if debug else 'off'}")
786
787
788class CertParamType(click.ParamType):

Callers 1

run_commandFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected