This commit is contained in:
Michiel Borkent 2020-01-02 14:31:13 +01:00
parent 277c693503
commit da66854f71

View file

@ -407,6 +407,8 @@ $ bb "(my-gist-script/-main)"
Hello from gist script!
```
### Deps.clj
Using the [deps.clj](https://github.com/borkdude/deps.clj/) script, you can also
pass the classpath and main opts to `bb`:
@ -415,6 +417,16 @@ $ deps.clj -A:my-script -Scommand "bb -cp {{classpath}} {{main-opts}}"
Hello from gist script!
```
#### Alias
Create an alias when you need to this often:
``` shell
$ alias babashka='deps.clj -Scommand "rlwrap bb -cp {{classpath}} {{main-opts}}"'
$ babashka -A:my-script
Hello from gist script!
```
## Uberscript
The `--uberscript` option collects the expressions in