Revert "Improve TUI interaction timing"

This commit is contained in:
thePR0M3TH3AN
2025-07-06 06:42:13 -04:00
committed by GitHub
parent 387737c23e
commit f4fe477288
3 changed files with 0 additions and 15 deletions

View File

@@ -188,13 +188,6 @@ class PasswordManager:
self.locked = False
self.update_activity()
def pause(self, prompt: str = "Press Enter to continue...") -> None:
"""Wait for the user to press Enter before proceeding."""
try:
input(colored(prompt, "cyan"))
except (EOFError, KeyboardInterrupt):
print()
def initialize_fingerprint_manager(self):
"""
Initializes the FingerprintManager.
@@ -943,7 +936,6 @@ class PasswordManager:
f"Failed to post updated index to Nostr: {nostr_error}",
exc_info=True,
)
self.pause()
except Exception as e:
logging.error(f"Error during password generation: {e}", exc_info=True)
@@ -1035,7 +1027,6 @@ class PasswordManager:
f"Failed to post updated index to Nostr: {nostr_error}",
exc_info=True,
)
self.pause()
break
except ValueError as err:
print(colored(f"Error: {err}", "red"))
@@ -1082,7 +1073,6 @@ class PasswordManager:
f"Failed to post updated index to Nostr: {nostr_error}",
exc_info=True,
)
self.pause()
except Exception as e:
logging.error(f"Error during SSH key setup: {e}", exc_info=True)
print(colored(f"Error: Failed to add SSH key: {e}", "red"))
@@ -1129,7 +1119,6 @@ class PasswordManager:
f"Failed to post updated index to Nostr: {nostr_error}",
exc_info=True,
)
self.pause()
except Exception as e:
logging.error(f"Error during seed phrase setup: {e}", exc_info=True)
print(colored(f"Error: Failed to add seed phrase: {e}", "red"))
@@ -1180,7 +1169,6 @@ class PasswordManager:
f"Failed to post updated index to Nostr: {nostr_error}",
exc_info=True,
)
self.pause()
except Exception as e:
logging.error(f"Error during PGP key setup: {e}", exc_info=True)
print(colored(f"Error: Failed to add PGP key: {e}", "red"))
@@ -1222,7 +1210,6 @@ class PasswordManager:
f"Failed to post updated index to Nostr: {nostr_error}",
exc_info=True,
)
self.pause()
except Exception as e:
logging.error(f"Error during Nostr key setup: {e}", exc_info=True)
print(colored(f"Error: Failed to add Nostr key: {e}", "red"))

View File

@@ -51,7 +51,6 @@ def test_handle_add_totp(monkeypatch, capsys):
)
monkeypatch.setattr("builtins.input", lambda *args, **kwargs: next(inputs))
monkeypatch.setattr(pm, "sync_vault", lambda: None)
monkeypatch.setattr(pm, "pause", lambda *a, **k: None)
pm.handle_add_totp()
out = capsys.readouterr().out

View File

@@ -66,7 +66,6 @@ def test_manager_workflow(monkeypatch):
]
)
monkeypatch.setattr("builtins.input", lambda *args, **kwargs: next(inputs))
monkeypatch.setattr(pm, "pause", lambda *a, **k: None)
pm.handle_add_password()
assert pm.is_dirty is False