ConsoleLaucher is simple tool for your .NET console application. ConsoleLauncher helps you to create useful and user-friedly navigation menu in just two steps.
ConsoleLauncher is a .NET tool, that helps you to create simply, user-friendly console menu. Navigation is handled by using Arrows (alt. PgUp/Down), Enter, Esc.
No longer force your users to write "yes/no".
One day, I think ConsoleLauncher could be named as framework, but now it is just simple tool. ;>
- Print menu from options list
- Call method/actions from options list
- Add layout(header/footer) support
- Customize colors
- Unit tests
- Add readme
- Automate build process:
- Build on PR push
- Automatic publishing to nuget.org
- Automatic releases
Latest version is available always on www.nuget.org/.../ConsoleLauncher
Install latest version
Install-Package ConsoleLauncher
Definition of list of menu entries with actions :
List<Option> options = new()
{
new Option("Submenu", Submenu),
new Option("Option 1 as action", Option1),
new Option("Option 1 as method", () => Option1()),
new Option("Empty option 2"),
new Option("Exit", () => Environment.Exit(0)),
};
Initializing menu:
Launcher.Menu(options);
For more examples, please refer to the ConsoleLauncher.Sample
Created by Jakub Gramburg (@Jacup) - feel free to contact me!