https://github.com/teverett/krepl
A simple framework for creating Java REPLs
https://github.com/teverett/krepl
java repl
Last synced: about 1 year ago
JSON representation
A simple framework for creating Java REPLs
- Host: GitHub
- URL: https://github.com/teverett/krepl
- Owner: teverett
- Created: 2018-12-04T02:13:02.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-02-26T07:06:24.000Z (over 1 year ago)
- Last Synced: 2025-04-11T05:52:41.648Z (about 1 year ago)
- Topics: java, repl
- Language: Java
- Size: 137 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README

[](https://www.codacy.com/app/teverett/krepl?utm_source=github.com&utm_medium=referral&utm_content=teverett/krepl&utm_campaign=Badge_Grade)
[](https://depshield.github.io)
K-REPL
===
K-REPL is a simple framework for building command-line REPLs in Java
Maven coordinates
---
```
com.khubla.krepl
krepl
1.2.0
jar
```
Adding Commands
---
To add a command, simply implement a class which extends `AbstractCommandImpl`. K-Repl will automatically find the class and add the command to the REPL.
Running the REPL
---
Simply instantiate the REPL class and call the method `repl()`
```
REPL repl = new REPL();
repl.repl();
```
It is possible to pass command strings directly to the repl via the `REPL.executeCommmandString()` API.