blackbull.cli¶
blackbull.cli
¶
Console entry point for module:attribute ASGI applications.
CLI arguments use serve() configuration precedence; see docs/guide/configuration.md.
main(argv=None)
¶
Entry point invoked by the blackbull console script.
Two forms are dispatched here:
blackbull serve [DIR] …— the zero-code static file server (see_serve_static);blackbull module:attr …— run an ASGI 3.0 application.
Returns a process exit code. argparse handles --help and
invalid-flag exits itself (status 2); application-level errors
(bad import path, bind syntax) print to stderr and exit 1.