Alias
This commit is contained in:
parent
277c693503
commit
da66854f71
1 changed files with 12 additions and 0 deletions
12
README.md
12
README.md
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue