Make using kitty askpass optional

This commit is contained in:
Kovid Goyal
2022-03-14 11:38:31 +05:30
parent 71027e74e0
commit 90561682cf
7 changed files with 71 additions and 32 deletions

View File

@@ -7,6 +7,9 @@ from kitty.conf.utils import merge_dicts, to_bool
class Parser:
def askpass(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
ans['askpass'] = str(val)
def copy(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
for k, v in copy(val, ans["copy"]):
ans["copy"][k] = v