Fix easter egg through CLI (#2542)

This commit is contained in:
Néstor Pérez
2022-09-12 00:44:21 +02:00
committed by GitHub
parent 5fb207176b
commit c8df0aa2cb
3 changed files with 11 additions and 0 deletions

View File

@@ -191,6 +191,7 @@ class RunnerMixin(metaclass=SanicMeta):
fast: bool = False,
verbosity: int = 0,
motd_display: Optional[Dict[str, str]] = None,
coffee: bool = False,
auto_tls: bool = False,
) -> None:
if version == 3 and self.state.server_info:
@@ -265,6 +266,9 @@ class RunnerMixin(metaclass=SanicMeta):
except AttributeError: # no cov
workers = os.cpu_count() or 1
if coffee:
self.state.coffee = True
server_settings = self._helper(
host=host,
port=port,