From 68dd991efdf3bb28c8d55ec90fff1ff9ac72825c Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Sat, 10 Aug 2019 20:34:24 +0200 Subject: [PATCH] download example --- README.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a6f4cb33..b3672846 100644 --- a/README.md +++ b/README.md @@ -147,10 +147,21 @@ welcome! For converting JSON to EDN, see [jet](https://github.com/borkdude/jet). ``` shellsession -$ curl -s https://api.github.com/repos/borkdude/clj-kondo/tags \ +$ curl -s https://api.github.com/repos/borkdude/babashka/tags \ | jet --from json --keywordize --to edn \ | bb '(-> *in* first :name (subs 1))' -"2019.07.31-alpha" +"0.0.4" +``` + +### Download latest linux version of babashka + +``` shellsession +$ curl -s https://api.github.com/repos/borkdude/babashka/releases \ +| jet --from json --keywordize \ +| bb '(-> *in* first :assets)' \ +| bb '(keep #(re-find #"^.*linux.*" (:browser_download_url %)) *in*)' \ +| bb -o '(first *in*)' \ +| xargs -n1 curl -sL > /tmp/bb ``` ## License