I currently I have a couple of org-babel shell snippets to package up a build and push it to a server for later usage. This also handily keeps a reference to the last execution of the snippet so I can remember what was last uploaded and when.
I was thinking I could further automate my process by hooking into
compilation-finish-functions to look-up a babel snippet and execute it on successful compilation. What's the best way to organise the babel snippets and call the snippets programmatically? I was wondering if I can use
:tags: or if I can just call up the snippet by
#+:NAME by searching all my
org-agenda-files. I was planning in storing the target babel function in the project's
It would also be nice to mark a snippet as trusted whilst it was unchanged so I didn't need to confirm every execution.