ssh kitten: Add an option to change the cwd at login

This commit is contained in:
Kovid Goyal
2022-03-07 12:24:37 +05:30
parent b0ea960159
commit c9071a66ca
7 changed files with 29 additions and 5 deletions

View File

@@ -11,6 +11,9 @@ class Parser:
for k, v in copy(val, ans["copy"]):
ans["copy"][k] = v
def cwd(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
ans['cwd'] = str(val)
def env(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
for k, v in env(val, ans["env"]):
ans["env"][k] = v