]> njoseph.me Git - babashka-scripts.git/commitdiff
Add a diagnostic to check if `task` alias works
authorJoseph Nuthalapati <njoseph@riseup.net>
Wed, 19 Oct 2022 05:10:06 +0000 (10:40 +0530)
committerJoseph Nuthalapati <njoseph@riseup.net>
Wed, 19 Oct 2022 05:10:44 +0000 (10:40 +0530)
bb.edn

diff --git a/bb.edn b/bb.edn
index 350ba7e3ffb595bbe4f47a6adcd402f1c51db761..f285ffa6cf57a68892f9bc1d6c0aec968bf71618 100644 (file)
--- a/bb.edn
+++ b/bb.edn
@@ -1,6 +1,9 @@
 {:paths ["scripts"]
  :tasks
- {gup {:requires ([git :refer [git-pull-rebase-branch]])
+ {test {:doc "Test whether the 'task' alias is working."
+        :task (println "Yes, it's working!")}
+
+  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))}