Add clipboard copy message for totp CLI

This commit is contained in:
thePR0M3TH3AN committed 2025-07-03 16:16:05 -04:00
1 parent 0c742890c1
commit 083a93440b
3 files changed
+3

No files matched your search

+1
View File
@@ -809,6 +809,7 @@ def main(argv: list[str] | None = None) -> int:
print(code)
try:
pyperclip.copy(code)
print(colored("Code copied to clipboard", "green"))
except Exception as exc:
logging.warning(f"Clipboard copy failed: {exc}")
return 0