Skip to content

Jacup/ConsoleLauncher

Repository files navigation

ConsoleLauncher build build

ConsoleLaucher is simple tool for your .NET console application. ConsoleLauncher helps you to create useful and user-friedly navigation menu in just two steps.

Table of Contents

General Information

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. ;>

Features / Roadmap

Tool:

  • Print menu from options list
  • Call method/actions from options list
  • Add layout(header/footer) support
  • Customize colors
  • Unit tests

Environment:

  • Add readme
  • Automate build process:
    • Build on PR push
    • Automatic publishing to nuget.org
    • Automatic releases

Get Started

Download

Latest version is available always on www.nuget.org/.../ConsoleLauncher

Installation via nuget.org

Install latest version

Install-Package ConsoleLauncher

Usage

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

Screenshots

image

image

Contact

Created by Jakub Gramburg (@Jacup) - feel free to contact me!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages