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, 'sys.path.append', 'sys.path.append', False, 'import sys\n'), (11, 'src.parser.Parser', 'Parser', False, 'from src.parser import Parser\n'), (13, 'src.sync_ends_service.SyncEnd', 'SyncEnd', False, 'from src.sync_ends_service import SyncEnd\n')]