from dotenv import load_dotenv

from mtmaisdk import Hatchet, WorkflowList

load_dotenv()

hatchet = Hatchet(debug=True)


def main():
    list: WorkflowList = hatchet.rest.workflow_list()

    for workflow in list.rows:
        print(workflow.name)
        print(workflow.metadata.id)
        print(workflow.metadata.created_at)
        print(workflow.metadata.updated_at)


if __name__ == "__main__":
    main()
