Thursday, March 6, 2025
Show HN: Shelgon: A Framework for Building Interactive REPL Shells in Rust https://ift.tt/VAwdqcH
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://ift.tt/yYMxSJI https://ift.tt/P8igLzE March 6, 2025 at 11:32PM
Labels:
Hacker News
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment