Update string formatting

This commit is contained in:
Millun Atluri 2024-02-11 10:42:55 -07:00 committed by Eugene Brodsky
parent d925f721b9
commit 0be9a2d906

View File

@ -82,17 +82,7 @@ def choose_version(available_releases: tuple | None = None) -> str:
if available_releases is None: if available_releases is None:
return "stable" return "stable"
console.print(":grey_question: [orange3]Please choose an Invoke version to install.") console.print(f" Version {choices[0] if response == '' else response} will be installed.")
choices = available_releases[0] + available_releases[1]
response = prompt(
message=f" <Enter> to install the recommended release ({choices[0]}). <Tab> or type to pick a version: ",
complete_while_typing=True,
completer=FuzzyWordCompleter(choices),
)
console.print(f" Version {choices[0] if response == "" else response} will be installed.")
console.line() console.line()