OpenShell is a general-purpose command-line interface framework for .NET applications. It provides a flexible architecture for building interactive command-line applications with customizable commands and application behaviors.
- Customizable command-line interface
- Application stacking mechanism
- Command parsing and execution
- Flexible prompt customization
- Built-in error handling
- Support for command flags and arguments
For comprehensive documentation, please see the docs folder:
- .NET 8.0 SDK or later
using OpenShell;
// Create a simple application
Application myApp = new Application(
new AppConfiguration("hello", new Command("hello")),
(args) => {
Console.WriteLine("Hello, World!");
return null;
}
);
// Create and start the shell
Shell shell = new Shell(new Application[] { myApp });
shell.PromptString = "myshell>";
shell.Start();
This project is licensed under the MIT License - see the LICENSE file for details.