Version 22.12 release notes (#2637)

This commit is contained in:
Adam Hopkins
2022-12-27 16:50:36 +02:00
committed by GitHub
parent 28f5b3c301
commit 4ad8168bb0
15 changed files with 108 additions and 28 deletions

View File

@@ -61,7 +61,7 @@ Or, a path to a directory to run as a simple HTTP server:
self.inspecting = False
def attach(self):
if sys.argv[1] == "inspect":
if len(sys.argv) > 1 and sys.argv[1] == "inspect":
self.inspecting = True
self.parser.description = get_logo(True)
make_inspector_parser(self.parser)
@@ -137,7 +137,9 @@ Or, a path to a directory to run as a simple HTTP server:
sys.stdout.write(
f"\n{Colors.BOLD}{Colors.YELLOW}WARNING:{Colors.END} "
"You are using the legacy CLI command that will be removed in "
f"{Colors.RED}v23.3{Colors.END}. See ___ or checkout the new "
f"{Colors.RED}v23.3{Colors.END}. See "
"https://sanic.dev/en/guide/release-notes/v22.12.html"
"#deprecations-and-removals or checkout the new "
"style commands:\n\n\t"
f"{Colors.YELLOW}sanic inspect --help{Colors.END}\n"
)

View File

@@ -53,7 +53,7 @@ def make_inspector_parser(parser: ArgumentParser) -> None:
"Or, you can optionally follow inspect with a subcommand. "
"If you have created a custom "
"Inspector instance, then you can run custom commands. See "
"https://sanic.dev/en/guide/deployment/inspector.html"
"https://sanic.dev/en/guide/deployment/inspector.html "
"for more details."
),
title=" Subcommands",