Get env conf working with tests

This commit is contained in:
Kovid Goyal
2022-02-26 09:48:36 +05:30
parent 846021296f
commit 53c8485a7a
7 changed files with 131 additions and 23 deletions

View File

@@ -1,18 +1,23 @@
# generated by gen-config.py DO NOT edit
import typing
from kittens.ssh.options.utils import hostname
from kittens.ssh.options.utils import env, hostname
from kitty.conf.utils import merge_dicts
class Parser:
def env(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
for k, v in env(val, ans["env"]):
ans["env"][k] = v
def hostname(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
hostname(val, ans)
def create_result_dict() -> typing.Dict[str, typing.Any]:
return {
'env': {},
}