mirror of
https://github.com/element-hq/ess-helm.git
synced 2026-11-25 19:41:33 -08:00
More input() fixes with rich
This commit is contained in:
3 files changed
+6
-4
No files matched your search
@@ -0,0 +1 @@
|
||||
Use Rich library to display formatted tables for migration mappings, workers, secrets, and warnings in the CLI output.
|
||||
@@ -318,8 +318,7 @@ class ProgressReporter:
|
||||
# Pause for user input after each step (unless in quiet mode or testing)
|
||||
if not os.environ.get("PYTEST_CURRENT_TEST") and self.pretty_logger.level != logging.CRITICAL:
|
||||
self.pretty_logger.info(" Press Enter to continue...")
|
||||
input()
|
||||
self.pretty_logger.info("")
|
||||
get_console().input()
|
||||
|
||||
def report_success(self, output_dir: str, file_paths: list[str]) -> None:
|
||||
"""Report successful completion.
|
||||
|
||||
@@ -507,8 +507,10 @@ def prompt_for_database_choice(pretty_logger: logging.Logger) -> bool:
|
||||
def press_enter_to_continue(pretty_logger: logging.Logger) -> None:
|
||||
if not is_quiet_mode(pretty_logger) and not os.environ.get("PYTEST_CURRENT_TEST"):
|
||||
print_prompt("Press Enter to continue...", logger=pretty_logger)
|
||||
input()
|
||||
print("")
|
||||
if is_rich_enabled():
|
||||
get_console().input()
|
||||
else:
|
||||
input()
|
||||
|
||||
|
||||
def prompt_value(
|
||||
|
||||
Reference in new issue
Block a user