Skip to content

Commit

Permalink
fix: use click prompt to hide password
Browse files Browse the repository at this point in the history
  • Loading branch information
johnson2427 committed Jul 1, 2024
1 parent d003195 commit 9e26c0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ape_aws/kms/_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def import_key(
import_from_mnemonic: bool,
hd_path: str,
):
breakpoint()
if private_key_path:
if isinstance(private_key_path, str):
private_key_path = Path(private_key_path)
Expand All @@ -135,7 +136,7 @@ def import_key(
private_key = account.key.hex()

else:
private_key = input("Enter your private key: ")
private_key = click.prompt("Enter your private key: ", hide_input=True)

key_spec = ImportKeyRequest(
alias=alias_name,
Expand Down

0 comments on commit 9e26c0a

Please sign in to comment.