MatthieuBizien / roam-to-git

Automatic RoamResearch backup to Git

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can you call roam-to-git from another python script?

8bitgentleman opened this issue · comments

I am looking to integrate roam-to-git into a larger roam project and I am trying to figure out how to import and trigger the backup via another python script. Any know how to do that?

import sys
sys.argv += ['--skip-git', 'notes', "-f", "edn"]

You can just import roam_to_git! You would have to duplicate some of the logic of main.py.