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.
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore 1.0-SNAPSHOT Dec 4, 2018
Readme.md codacity badge Dec 8, 2018
pom.xml [maven-release-plugin] prepare for next development iteration Dec 4, 2018


Travis Codacy Badge DepShield Badge


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

Maven coordinates


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();

It is possible to pass command strings directly to the repl via the REPL.executeCommmandString() API.