I want to create my own customized terminal/command-line application from scratch.
The application will have its own predefined command structure. I want users to be able to enter only the commands that I define, and my application should parse and process those commands using its own logic.
I do not want to use CMD, PowerShell, Bash, or another existing shell as the underlying command interpreter.
For example, conceptually, the application would work like this:
User enters a command
↓
Custom command parser
↓
Validate command and arguments
↓
Execute the corresponding application logic
↓
Display the result
Commands that are not defined by my application should be rejected.
My questions are:
What programming language would be most suitable for developing this type of application?
What would be a good architecture for implementing a custom command parser and command handler?
Should I create the command parser myself or use an existing library?
Is it possible to implement this completely independently of CMD, PowerShell, or another shell?
I am currently considering C#/.NET. Would C#/.NET be a suitable choice for this type of project?