Skip to content

rishit-singh/OpenShell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenShell

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.

Features

  • Customizable command-line interface
  • Application stacking mechanism
  • Command parsing and execution
  • Flexible prompt customization
  • Built-in error handling
  • Support for command flags and arguments

Documentation

For comprehensive documentation, please see the docs folder:

Requirements

  • .NET 8.0 SDK or later

Quick Start

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();

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

General purpose command line interface.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages