Skip to content

teverett/krepl

Repository files navigation

CI 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.2.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.

About

A simple framework for creating Java REPLs

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published