This commit is contained in:
Michiel Borkent 2020-01-02 14:34:26 +01:00
parent da66854f71
commit 14db2bc0d6

View file

@ -409,17 +409,14 @@ Hello from gist script!
### Deps.clj ### Deps.clj
Using the [deps.clj](https://github.com/borkdude/deps.clj/) script, you can also The [`deps.clj`](https://github.com/borkdude/deps.clj/) script can be used to work with `deps.edn`-based projects:
pass the classpath and main opts to `bb`:
``` shell ``` shell
$ deps.clj -A:my-script -Scommand "bb -cp {{classpath}} {{main-opts}}" $ deps.clj -A:my-script -Scommand "bb -cp {{classpath}} {{main-opts}}"
Hello from gist script! Hello from gist script!
``` ```
#### Alias Create this alias for brevity:
Create an alias when you need to this often:
``` shell ``` shell
$ alias babashka='deps.clj -Scommand "rlwrap bb -cp {{classpath}} {{main-opts}}"' $ alias babashka='deps.clj -Scommand "rlwrap bb -cp {{classpath}} {{main-opts}}"'