adg_script/main.py

20 lines
390 B
Python
Raw Normal View History

2024-01-09 22:20:55 +00:00
from adg_control import AdgClient, ADG_EXE, ADG_DIR
from parser import Parser
from cache import Cache
2024-02-12 18:19:03 +00:00
from sys import argv
2024-01-09 22:20:55 +00:00
def main():
2024-02-12 18:19:03 +00:00
print(argv[1])
parser = Parser(argv[1])
2024-01-09 22:20:55 +00:00
client = AdgClient(ADG_EXE, ADG_DIR)
cache = Cache()
2024-01-09 22:20:55 +00:00
2024-01-11 16:23:31 +00:00
for command in parser.commands:
2024-02-12 18:19:03 +00:00
print(command.type)
2024-01-11 16:23:31 +00:00
command.execute(client, cache)
2024-01-09 22:20:55 +00:00
if __name__ == "__main__":
main()