Provides a command line only selectable menu. It is very easy to implement interactive selectable menus.
- Selectable menu that works on CommandLine.
CommandLineSelectableMenu
is available for download and installation as NuGet packages.
Install-Package CommandLineSelectableMenu -Version <version>
using CommandLineSelectableMenu;
using System;
public class Program
{
public static void Main(string[] args)
{
// create selectable menu instance.
var selectableMenu = new SelectableMenu<Action>();
// add menu item.
selectableMenu.Add("Choose item A?", () => { Console.WriteLine("A Selected!!"); });
selectableMenu.Add("Choose item B?", () => { Console.WriteLine("B Selected!!"); });
selectableMenu.Add("Choose item C?", () => { Console.WriteLine("C Selected!!"); });
selectableMenu.Add("Choose item D?", () => { Console.WriteLine("D Selected!!"); });
// draw selectable menu on console.
var item = selectableMenu.Draw();
item.Invoke();
}
}
It is easy to create a selectable menu that works on CommandLine.
If you are interested, please see the sample here.
Pull requests and stars are always welcome.
Contributions are what make the open source community such an amazing place to be learn, inspire, and create.
Any contributions you make are greatly appreciated.
- Fork the Project.
- Create your Feature Branch(
git checkout -b feature/amazing_feature
). - Commit your Changes(
git commit -m 'Add some changes'
). - Push to the Branch(
git push origin feature/amazing_feature
). - Open a Pull Request.
MIT. Click here for details.