Creating a standalone console (shell) for domain operations

Say that I have a system service, and I want to offer him access to low-level services.

For this purpose, I would like to create a standalone console application that somehow connects to the server process and allows the user to enter commands, allowing him to use autocomplete and automatic suggestion for single / double pressing TAB (only like linux bash shell, mysql cli, cmd .exe and many others), allow the ability to edit the command line (history, cursor keys to move through the text ..), etc.

Now there is not much problem to create something like this, minimizing your own from scratch, processing user input, scanning keystrokes, and doing the right thing. But why reinvent the wheel? Is there some kind of library / framework that helps with such problems, like the readline library, which offers improved command line editing features on Linux?

Of course, this new “shell” will only respond to valid domain-specific commands and offer the correct arguments, options, switches ...

Any ideas? Thank!

+5
source share

All Articles