A simple framework for creating Java REPLs
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/main/java/com/khubla/krepl
.gitignore 1.0-SNAPSHOT Dec 4, 2018
.travis.yml
Readme.md codacity badge Dec 8, 2018
pom.xml [maven-release-plugin] prepare for next development iteration Dec 4, 2018

Readme.md

Travis Codacy Badge DepShield Badge

K-REPL

K-REPL is a simple framework for building command-line REPLs in Java

Maven coordinates

<groupId>com.khubla.krepl</groupId>
<artifactId>krepl</artifactId>
<version>1.0</version>
<packaging>jar</packaging>

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.