pass_typer: Fix return type of get_password

This commit is contained in:
Adam Goldsmith 2023-04-19 10:28:33 -04:00
parent 0f08a57d30
commit 7c9f062061

View File

@ -38,7 +38,7 @@ def rofi_select(options: list[str]) -> str:
return rofi.stdout.strip() return rofi.stdout.strip()
def get_password(password_name: str) -> None: def get_password(password_name: str) -> str:
pass_result = cmd(["pass", password_name]) pass_result = cmd(["pass", password_name])
password, _, _ = pass_result.stdout.partition("\n") password, _, _ = pass_result.stdout.partition("\n")
return password return password