{"by":"cat-whisperer","descendants":25,"id":43284227,"kids":[43284964,43284949,43288492,43287568,43284908,43285161,43328894,43285714,43284944,43286240],"score":130,"text":"I&#x27;ve been working on Shelgon, a framework that lets you build your own custom REPL shells and interactive CLI applications in Rust.<p>You can use Shelgon to:<p>- Create a custom shell with only a few lines of code\n- Build interactive debugging tools with persistent state between commands\n- Develop domain-specific language interpreters with shell-like interfaces\n- Add REPL capabilities to existing applications<p>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.<p>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.<p>Repository: <a href=\"https:&#x2F;&#x2F;github.com&#x2F;nishantjoshi00&#x2F;shelgon\">https:&#x2F;&#x2F;github.com&#x2F;nishantjoshi00&#x2F;shelgon</a>","time":1741289532,"title":"Show HN: Shelgon: A Framework for Building Interactive REPL Shells in Rust","type":"story","url":"https://github.com/NishantJoshi00/shelgon"}