2024-01-09 22:20:55 +00:00
|
|
|
from adg_control import AdgClient, ADG_EXE, ADG_DIR
|
|
|
|
from parser import Parser
|
2024-01-11 14:49:34 +00:00
|
|
|
from cache import Cache
|
2024-01-09 22:20:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
def main():
|
|
|
|
parser = Parser("./test")
|
|
|
|
client = AdgClient(ADG_EXE, ADG_DIR)
|
2024-01-11 14:49:34 +00:00
|
|
|
cache = Cache()
|
2024-01-09 22:20:55 +00:00
|
|
|
|
|
|
|
c1 = parser.commands[0]
|
2024-01-11 14:49:34 +00:00
|
|
|
c1.execute(client, cache)
|
2024-01-09 22:20:55 +00:00
|
|
|
|
|
|
|
c2 = parser.commands[1]
|
2024-01-11 14:49:34 +00:00
|
|
|
c2.execute(client, cache)
|
2024-01-09 22:20:55 +00:00
|
|
|
|
|
|
|
c3 = parser.commands[2]
|
2024-01-11 14:49:34 +00:00
|
|
|
c3.execute(client, cache)
|
2024-01-09 22:20:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
main()
|