Update README
This commit is contained in:
parent
6b93135ee2
commit
00420879be
1 changed files with 11 additions and 6 deletions
17
README.md
17
README.md
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue