import sys

sys.path.append("..")

from src.sync_ends_service import SyncEnd
from src.parser import Parser


def main():
    # get the arguments from commadn line
    parser = Parser()
    collection_name, api_key, trigger_interval, slack_channel, slack_token = parser.get_argumenets()
    sync_end = SyncEnd(api_key, collection_name, trigger_interval, slack_channel, slack_token)
    try:
        sync_end.start()
    except Exception as e:
        print(e)


if __name__ == "__main__":
    main()

[((3, 0, 3, 21), 'sys.path.append', 'sys.path.append', ({(3, 16, 3, 20): '""".."""'}, {}), "('..')", False, 'import sys\n'), ((11, 13, 11, 21), 'src.parser.Parser', 'Parser', ({}, {}), '()', False, 'from src.parser import Parser\n'), ((13, 15, 13, 94), 'src.sync_ends_service.SyncEnd', 'SyncEnd', ({(13, 23, 13, 30): 'api_key', (13, 32, 13, 47): 'collection_name', (13, 49, 13, 65): 'trigger_interval', (13, 67, 13, 80): 'slack_channel', (13, 82, 13, 93): 'slack_token'}, {}), '(api_key, collection_name, trigger_interval, slack_channel, slack_token)', False, 'from src.sync_ends_service import SyncEnd\n')]