sanic/sanic/__main__.py
Adam Hopkins 4726cf1910
Sanic Server WorkerManager refactor (#2499)
Co-authored-by: Néstor Pérez <25409753+prryplatypus@users.noreply.github.com>
2022-09-18 17:17:23 +03:00

17 lines
278 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(args=None):
cli = SanicCLI()
cli.attach()
cli.run(args)
if __name__ == "__main__":
main()