More input() fixes with rich

This commit is contained in:
Gaël Goinvic committed 2026-05-25 15:15:46 +02:00
1 parent eb8a39b4de
commit 92bcb85964
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(