Restructure

Pacakge as a CLI application
This commit is contained in:
up-n-atom
2023-11-17 20:19:48 -05:00
parent 25c10e66e8
commit 12a196c449
11 changed files with 210 additions and 171 deletions
+19
View File
@@ -0,0 +1,19 @@
import os
import xmo.dns
import xmo.dmz
import xmo.wifi
import yaml
from . import xmo
def main():
config = dict()
if os.path.isfile('config.yaml'):
with open('config.yaml') as f:
config = yaml.safe_load(f)
xmo.cli(default_map=config, _anyio_backend='asyncio')
if __name__ == '__main__':
main()