c# - Creating standalone, console (shell) for domain-specific operations -


Say I have a system service, and I want to provide it with low level maintenance.

For that purpose, I would like to create a standalone, console application that somehow should connect to the server process and allow the user to type in the command, on the single / double tab press autocomplete and automatic : Allow to use suggestions (just like linux bash shell, mysql cli, cmd.exe, and countless others), allow command line editing capabilities (history, move cursor key around text, etc.), etc. .

Now, it is not so much that by rolling your own from scratch, handling user input, scanning key, and doing the right action, there is a problem creating something like this, why reinvent the wheel? Is there a library / framework that helps in problems like this, like Linux, to improve command-line editing capabilities under Linux, are there any such problems?

Of course, this new "shell" will only suggest valid, domain-specific commands, and valid arguments, options, switches ...

Any ideas? Thanks!

It looks like fit for PowerShell. Which hosts a set of snappins for your domain specific commands (which can be developed in C #), and also allows remote execution of the command.

Exchange -

Many MS server products have custom powershell "shell", such as

Exchange - < / P>

Update

Downside is learning a new shell and how to optimize it, and a special object is oriented. The hole of the rabbit deepens on it, but rolling your own shell functionality with hands clearly takes a lot of time in itself.

Some links:

Book:

General:

Introduction custom command \ span-in:


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -