2021-10-11 00:58:49 +00:00
|
|
|
from kiwi_scp.config import Config
|
|
|
|
import yaml
|
|
|
|
|
|
|
|
|
|
|
|
def main():
|
2021-10-12 17:17:28 +00:00
|
|
|
with open("./example/kiwi.yml") as kc:
|
2021-10-11 00:58:49 +00:00
|
|
|
yml = yaml.safe_load(kc)
|
|
|
|
kiwi = Config(**yml)
|
|
|
|
|
|
|
|
print(repr(kiwi))
|
|
|
|
|
2021-10-12 17:17:28 +00:00
|
|
|
kiwi = Config()
|
|
|
|
print(repr(kiwi))
|
|
|
|
|
2021-10-11 00:58:49 +00:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
main()
|