Skip to content

Commit a34a6a4

Browse files
maxandersenbodiam
andauthored
doc: mention jbang option (#1661)
* doc: mention jbang option * Update README.md --------- Co-authored-by: Erik Pragt <erik.pragt@gmail.com>
1 parent 146947c commit a34a6a4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,15 @@ JShell
7676
```
7777
# from project root folder
7878
jshell --class-path $(ls -d target/*.jar | tr '\n' ':')
79+
```
80+
81+
or JShell w/[JBang](https://www.jbang.dev/)
82+
```
83+
# can be run anywhere, no project root/download needed.
84+
jbang -i net.datafaker:datafaker:2.5.0
85+
```
86+
87+
```
7988
| Welcome to JShell -- Version 17.0.4
8089
| For an introduction type: /help intro
8190

0 commit comments

Comments
 (0)