README
This commit is contained in:
parent
da66854f71
commit
14db2bc0d6
1 changed files with 2 additions and 5 deletions
|
|
@ -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}}"'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue