]> njoseph.me Git - babashka-scripts.git/blobdiff - bb.edn
Shift from standalone scripts to babashka tasks
[babashka-scripts.git] / bb.edn
diff --git a/bb.edn b/bb.edn
new file mode 100644 (file)
index 0000000..350ba7e
--- /dev/null
+++ b/bb.edn
@@ -0,0 +1,21 @@
+{:paths ["scripts"]
+ :tasks
+ {gup {:requires ([git :refer [git-pull-rebase-branch]])
+       :doc "Do a git pull and rebase branch with master in a given directory."
+       :task (git-pull-rebase-branch (get (into [] *command-line-args*) 0))}
+
+  gpa {:requires ([git :refer [git-pull-all]])
+       :doc "Runs `git pull` on all the git repositories in a given directory."
+       :task (git-pull-all (get (into [] *command-line-args*) 0))}
+
+  ebook-to-audiobook {:requires ([ebooks :refer [convert-ebook-to-audiobook]])
+                      :doc "A utility to listen to your ebooks using TTS programs. Only tested on macOS with epub files."
+                      :task (convert-ebook-to-audiobook (get (into [] *command-line-args*) 0))}
+
+  install-deb {:requires ([debian :refer [install-deb-from-url]])
+               :doc "Install a Debian package given a direct URL to the .deb file."
+               :task (install-deb-from-url (get (into [] *command-line-args*) 0))}
+
+  install-deb-gh {:requires ([debian :refer [install-deb-from-GitHub]])
+                  :doc "Install a Debian package given a GitHub URL."
+                  :task (install-deb-from-GitHub (get (into [] *command-line-args*) 0))}}}