ConsoleLauncher 2.0.0

dotnet add package ConsoleLauncher --version 2.0.0
                    
NuGet\Install-Package ConsoleLauncher -Version 2.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ConsoleLauncher" Version="2.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ConsoleLauncher" Version="2.0.0" />
                    
Directory.Packages.props
<PackageReference Include="ConsoleLauncher" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ConsoleLauncher --version 2.0.0
                    
#r "nuget: ConsoleLauncher, 2.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ConsoleLauncher@2.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ConsoleLauncher&version=2.0.0
                    
Install as a Cake Addin
#tool nuget:?package=ConsoleLauncher&version=2.0.0
                    
Install as a Cake Tool

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!

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0 597 1/2/2024
1.0.1 1,502 8/20/2022
0.4.0-alpha 328 4/29/2022
0.3.0-alpha 327 4/25/2022
0.2.0-alpha 302 4/24/2022
0.1.3-alpha 313 4/22/2022
0.1.2-alpha 297 4/22/2022
0.1.1-alpha 313 4/22/2022