by cat-whisperer on 3/6/25, 7:32 PM with 25 comments
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
by bfLives on 3/6/25, 8:52 PM
1. Why async?
2. Why couple to anyhow instead of using an associated error type?
by cmrdporcupine on 3/6/25, 8:50 PM
One suggestions: the README advertises lovely TUIs. Show us a screenshot, or screencast, so we can see what you mean!
by faizshah on 3/7/25, 9:10 AM
by serial_dev on 3/7/25, 5:28 AM
Video or gif would be nice! It’s like a UI library need at least a screenshot, this thing needs a video demo of sorts.
Q: why write that the docs is by LLM? In my opinion if it’s correct, and it makes sense, I don’t care even if an alien gave it to you.
by hkalbasi on 3/6/25, 8:45 PM
by ilikegreen on 3/6/25, 9:17 PM
by hajimuz on 3/11/25, 3:29 AM
by jiaaro on 3/6/25, 10:32 PM