K-REPL is a simple framework for building command-line REPLs in Java
<groupId>com.khubla.krepl</groupId> <artifactId>krepl</artifactId> <version>1.2.0</version> <packaging>jar</packaging>
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 = new REPL(); repl.repl();
It is possible to pass command strings directly to the repl via the