How can you call roam-to-git from another python script?
8bitgentleman opened this issue · comments
Matt Vogel commented
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?
Matt Vogel commented
import sys
sys.argv += ['--skip-git', 'notes', "-f", "edn"]
Matthieu Bizien commented
You can just import roam_to_git! You would have to duplicate some of the logic of main.py.