docs
This commit is contained in:
parent
80ef3dd6b2
commit
5c83e135d9
1 changed files with 8 additions and 5 deletions
13
README.md
13
README.md
|
|
@ -47,12 +47,12 @@ You may also download a binary from [Github](https://github.com/borkdude/babashk
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
``` shellsession
|
``` shellsession
|
||||||
echo <input> | bb [--raw] '<Clojure form>'
|
... | bb [--raw] '<Clojure form>'
|
||||||
```
|
```
|
||||||
|
|
||||||
There is one special variable, `*in*` is piped from stdin. When the `--raw` flag
|
There is one special variable, `*in*`, which is the input read from stdin. When
|
||||||
is provided, `*in*` is a single string or vector of strings. When it is omitted,
|
the `--raw` flag is provided, `*in*` is a single string or vector of
|
||||||
the input is read as EDN.
|
strings. When it is omitted, the input is read as EDN.
|
||||||
|
|
||||||
The current version can be printed with:
|
The current version can be printed with:
|
||||||
|
|
||||||
|
|
@ -94,10 +94,13 @@ $ ls | bb --raw '(filterv #f (re-find #r "reflection" %) *in*)'
|
||||||
|
|
||||||
## Test
|
## Test
|
||||||
|
|
||||||
Test the JVM version:
|
Test on the JVM:
|
||||||
|
|
||||||
script/test
|
script/test
|
||||||
|
|
||||||
|
Although this tool doesn't offer any benefit when running on the JVM, it is
|
||||||
|
convenient for development.
|
||||||
|
|
||||||
Test the native version:
|
Test the native version:
|
||||||
|
|
||||||
BABASHKA_TEST_ENV=native script/test
|
BABASHKA_TEST_ENV=native script/test
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue