MCPcopy Create free account
hub / github.com/pallets/quart / run_command

Function run_command

src/quart/cli.py:641–663  ·  view source on GitHub ↗

Run a local development server.

(
    info: ScriptInfo,
    host: str,
    port: int,
    reload: bool,
    keyfile: str,
    certfile: str,
)

Source from the content-addressed store, hash-verified

639)
640@pass_script_info
641def run_command(
642 info: ScriptInfo,
643 host: str,
644 port: int,
645 reload: bool,
646 keyfile: str,
647 certfile: str,
648) -> None:
649 """Run a local development server."""
650 app = info.load_app()
651 debug = get_debug_flag()
652
653 if reload is None:
654 reload = debug
655
656 app.run(
657 debug=debug,
658 host=host,
659 port=port,
660 certfile=certfile,
661 keyfile=keyfile,
662 use_reloader=reload,
663 )
664
665
666@click.command("shell", short_help="Run a shell in the app context.")

Callers

nothing calls this directly

Calls 3

get_debug_flagFunction · 0.85
load_appMethod · 0.80
runMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…