Skip to content

Commit 4201d62

Browse files
kopporsubhramit
andauthored
Refine README.md for running JabKit (#13484)
* Refine README.md for running JabKit * Update README.md Co-authored-by: Subhramit Basu <subhramit.bb@live.in> * Use fenced code blocks * Move JBang part from main README.md to .jbang/README.md * Fix casing of JBang --------- Co-authored-by: Subhramit Basu <subhramit.bb@live.in>
1 parent 0da7a12 commit 4201d62

File tree

3 files changed

+45
-26
lines changed

3 files changed

+45
-26
lines changed

.jbang/README.md

Lines changed: 38 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,53 @@
11
# JBang scripts for JabRef
22

3-
This directory contains [JBang](https://www.jbang.dev/) scripts for JabRef.
3+
This directory contains JBang scripts for JabRef.
4+
[JBang](https://www.jbang.dev/) allows for running Java applications without having a JDK installed (before).
45

56
Three use cases:
67

78
- Try out any pull request with minimal installation. See [our blog entry](https://blog.jabref.org/2025/05/31/run-pr/) for details.
8-
- Run `JabKit` - JabRef's CLI tool.
9-
- Run `JabSrv` - JabRef's HTTP server.
9+
- Run JabKit - JabRef's CLI tool.
10+
- Run JabSrv - JabRef's HTTP server.
1011

11-
## Running `JabKit`
12+
## Running JabKit without installation
1213

13-
If you have JBang installed, just run `jbang jabkit@jabref --help`
14+
By using [gg.cmd](https://github.com/eirikb/gg#ggcmd) you can "just run" JabKit with minimal setup:
1415

15-
If not, download [`gg.cmd`](https://github.com/eirikb/gg/tree/main?tab=readme-ov-file#ggcmd), place it in the current directory (or on your `PATH`) and execute:
16+
1. Download `gg.cmd` from: <https://github.com/eirikb/gg#ggcmd>. `gg.cmd` is a "binary" running on macOS, Linux, and Windows. No need for different binaries on different operating systems.
17+
2. Run `gg.cmd`. This will download and use JBang as wrapper around running JabKit:
1618

17-
gg.cmd jbang jabkit@jabref --help
19+
- Linux/macOS: Run `sh ./gg.cmd jbang jabkit@jabref --help`.
20+
- Windows: Run `gg.cmd jbang jabkit@jabref --help`.
1821

19-
## Running `JabSrv`
22+
You can also put `gg.cmd` on your `PATH` and make it executable.
23+
Then you enable `alias jabkit='gg.cmd jbang jabkit@jabref`.
2024

21-
If you have JBang installed, just run `jbang jabsrv@jabref --help`
25+
## Running JabKit with JBang
2226

23-
With `gg.cmd`:
27+
If you have JBang installed, just run
28+
29+
```terminal
30+
jbang jabkit@jabref --help
31+
```
32+
33+
You can also install `jabkit` permanently in your `PATH`:
34+
35+
1. [Install JBang](https://www.jbang.dev/download/). E.g., by `brew install jbangdev/tap/jbang` or `choco install jbang`
36+
2. Make `jabkit` available on the command line: `jbang app install jabkit@jabref`
37+
3. Run `jabkit --help`
38+
39+
[JBang takes care about updating JabKit automatically](https://github.com/orgs/jbangdev/discussions/1636#discussioncomment-6150992).
2440

25-
gg.cmd jbang jabsrv@jabref --help
41+
## Running JabSrv
42+
43+
If you have JBang installed, just run following command
44+
45+
```terminal
46+
jbang jabsrv@jabref --help
47+
```
48+
49+
With `gg.cmd`:
2650

51+
```terminal
52+
sh ./gg.cmd jbang jabsrv@jabref --help
53+
```

.vscode/ltex.dictionary.en-US.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
Checkstyle
22
CouchDB
33
JabDrive
4+
JabKit
45
JabRef
6+
JabSrv
7+
JBang
58
OpenFastTrace
69
OpenRewrite
710
Temurin
8-
9-
JabKit

README.md

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -56,24 +56,15 @@ Please see our [Installation Guide](https://docs.jabref.org/installation).
5656

5757
JabRef offers a CLI application.
5858

59-
You can run it using docker:
59+
You can run it using JBang.
60+
We provide details at [`.jbang/README.md`](.jbang/README.md).
61+
62+
You can also run JabKit using docker:
6063

6164
```terminal
6265
docker run ghcr.io/jabref/jabkit:edge --help
6366
```
6467

65-
### Running JabKit using `JBang`
66-
67-
[`JBang`](https://www.jbang.dev/) allows for running Java applications without having a JDK installed (before).
68-
69-
Steps:
70-
71-
1. [Install `JBang`](https://www.jbang.dev/download/). E.g., by `brew install jbangdev/tap/jbang` or `choco install jbang`
72-
2. Make `jabkit` available on the command line: `jbang app install jabkit@jabref`
73-
3. Run `jabkit --help`
74-
75-
Now, you have all JabKit functionality available as `jabkit`.
76-
7768
## Bug Reports, Suggestions, Other Feedback
7869

7970
[![Donation](https://img.shields.io/badge/donate%20to-jabref-orange.svg)](https://donations.jabref.org)

0 commit comments

Comments
 (0)