Update README

This commit is contained in:
Michiel Borkent 2020-03-01 12:06:19 +01:00
parent 6b93135ee2
commit 00420879be

View file

@ -865,13 +865,18 @@ $ < /tmp/test.txt bb -io '(shuffle *input*)'
### Fetch latest Github release tag ### Fetch latest Github release tag
For converting JSON to EDN, see [jet](https://github.com/borkdude/jet). ``` shell
(require '[clojure.java.shell :refer [sh]]
'[cheshire.core :as json])
``` shellsession (defn babashka-latest-version []
$ curl -s https://api.github.com/repos/borkdude/babashka/tags | (-> (sh "curl" "https://api.github.com/repos/borkdude/babashka/tags")
jet --from json --keywordize --to edn | :out
bb '(-> *input* first :name (subs 1))' (json/parse-string true)
"0.0.4" first
:name))
(babashka-latest-version) ;;=> "v0.0.73"
``` ```
### Generate deps.edn entry for a gitlib ### Generate deps.edn entry for a gitlib