392a497366
* Initial work on restructure of application state * Updated MOTD with more flexible input and add basic version * Remove unnecessary type ignores * Add wrapping and smarter output per process type * Add support for ASGI MOTD * Add Windows color support ernable * Refactor __main__ into submodule * Renest arguments * Passing unit tests * Passing unit tests * Typing * Fix num worker test * Add context to assert failure * Add some type annotations * Some linting * Line aware searching in test * Test abstractions * Fix some flappy tests * Bump up timeout on CLI tests * Change test for no access logs on gunicornworker * Add some basic test converage * Some new tests, and disallow workers and fast on app.run
17 lines
265 B
Python
17 lines
265 B
Python
from sanic.cli.app import SanicCLI
|
|
from sanic.compat import OS_IS_WINDOWS, enable_windows_color_support
|
|
|
|
|
|
if OS_IS_WINDOWS:
|
|
enable_windows_color_support()
|
|
|
|
|
|
def main():
|
|
cli = SanicCLI()
|
|
cli.attach()
|
|
cli.run()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|