fix(installer): small formatting fix in welcome banner

This commit is contained in:
Eugene Brodsky 2024-02-05 15:23:29 -05:00 committed by Kent Keirsey
parent 29bcc4b595
commit 1cb866d1fc

View File

@ -39,7 +39,7 @@ else:
def welcome(): def welcome():
@group() @group()
def text(): def text():
if (platform_specific := _platform_specific_help()) != "": if (platform_specific := _platform_specific_help()) is not None:
yield platform_specific yield platform_specific
yield "" yield ""
yield Text.from_markup( yield Text.from_markup(
@ -345,7 +345,7 @@ def introduction() -> None:
console.line(2) console.line(2)
def _platform_specific_help() -> Text: def _platform_specific_help() -> Text | None:
if OS == "Darwin": if OS == "Darwin":
text = Text.from_markup( text = Text.from_markup(
"""[b wheat1]macOS Users![/]\n\nPlease be sure you have the [b wheat1]Xcode command-line tools[/] installed before continuing.\nIf not, cancel with [i]Control-C[/] and follow the Xcode install instructions at [deep_sky_blue1]https://www.freecodecamp.org/news/install-xcode-command-line-tools/[/].""" """[b wheat1]macOS Users![/]\n\nPlease be sure you have the [b wheat1]Xcode command-line tools[/] installed before continuing.\nIf not, cancel with [i]Control-C[/] and follow the Xcode install instructions at [deep_sky_blue1]https://www.freecodecamp.org/news/install-xcode-command-line-tools/[/]."""
@ -359,5 +359,5 @@ def _platform_specific_help() -> Text:
[deep_sky_blue1]https://learn.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170[/]""" [deep_sky_blue1]https://learn.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170[/]"""
) )
else: else:
text = Text() return
return text return text