Show HN: Shelgon: A Framework for Building Interactive REPL Shells in Rust

I've been working on Shelgon, a framework that lets you build your own custom REPL shells and interactive CLI applications in Rust.

You can use Shelgon to:

- Create a custom shell with only a few lines of code - Build interactive debugging tools with persistent state between commands - Develop domain-specific language interpreters with shell-like interfaces - Add REPL capabilities to existing applications

Getting started is straightforward - implement a single trait that handles your command execution logic, and Shelgon takes care of the terminal UI, input handling, and async runtime integration.

For example, a simple echo shell takes less than 50 lines of code, including a full implementation of command history, cursor movement, and tab completion.

Repository: https://github.com/nishantjoshi00/shelgon


Comments URL: https://news.ycombinator.com/item?id=43284227

Points: 42

# Comments: 7

https://github.com/NishantJoshi00/shelgon

Vytvořeno 4mo | 6. 3. 2025 21:40:13


Chcete-li přidat komentář, přihlaste se

Ostatní příspěvky v této skupině

Show HN: Simple wrapper for Chrome's built-in local LLM (Gemini Nano)

Chrome now includes a native on-device LLM (Gemini Nano) starting in version 138. I've been building with it since it was in origin trials, it's powerful but the official Prompt API is still a bit

6. 7. 2025 21:50:14 | Hacker news
I extracted the safety filters from Apple Intelligence models

I managed to reverse engineer the encryption (refered to as “Obfuscation” in the framework) responsible for managing the safety filters of Apple Intelligence models. I have extracted them into a r

6. 7. 2025 21:50:11 | Hacker news