pass_typer: Fix return type of get_password
This commit is contained in:
parent
0f08a57d30
commit
7c9f062061
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user