pipe can be EOL
This commit is contained in:
parent
dd9b89b5e1
commit
f5f2255626
1 changed files with 7 additions and 7 deletions
14
README.md
14
README.md
|
|
@ -135,19 +135,19 @@ $ < /tmp/test.txt bb -io '(shuffle *in*)'
|
|||
For converting JSON to EDN, see [jet](https://github.com/borkdude/jet).
|
||||
|
||||
``` shellsession
|
||||
$ curl -s https://api.github.com/repos/borkdude/babashka/tags \
|
||||
| jet --from json --keywordize --to edn \
|
||||
| bb '(-> *in* first :name (subs 1))'
|
||||
$ curl -s https://api.github.com/repos/borkdude/babashka/tags |
|
||||
jet --from json --keywordize --to edn |
|
||||
bb '(-> *in* first :name (subs 1))'
|
||||
"0.0.4"
|
||||
```
|
||||
|
||||
### Get latest OS-specific download url from Github
|
||||
|
||||
``` shellsession
|
||||
$ curl -s https://api.github.com/repos/borkdude/babashka/releases \
|
||||
| jet --from json --keywordize \
|
||||
| bb '(-> *in* first :assets)' \
|
||||
| bb '(some #(re-find #".*linux.*" (:browser_download_url %)) *in*)'
|
||||
$ curl -s https://api.github.com/repos/borkdude/babashka/releases |
|
||||
jet --from json --keywordize |
|
||||
bb '(-> *in* first :assets)' |
|
||||
bb '(some #(re-find #".*linux.*" (:browser_download_url %)) *in*)'
|
||||
"https://github.com/borkdude/babashka/releases/download/v0.0.4/babashka-0.0.4-linux-amd64.zip"
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue