Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/teverett/krepl
A simple framework for creating Java REPLs
https://github.com/teverett/krepl
java repl
Last synced: 24 days 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 (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-06-23T04:12:40.000Z (5 months ago)
- Last Synced: 2024-06-23T06:14:42.226Z (5 months ago)
- Topics: java, repl
- Language: Java
- Size: 113 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
![CI](https://github.com/teverett/krepl/workflows/CI/badge.svg)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/ea088223d07242f196809250a2d255e9)](https://www.codacy.com/app/teverett/krepl?utm_source=github.com&utm_medium=referral&utm_content=teverett/krepl&utm_campaign=Badge_Grade)
[![DepShield Badge](https://depshield.sonatype.org/badges/teverett/krepl/depshield.svg)](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.