Senpai 2.0.0-alpha.1.0

Additional Details

Package has moved to maid

This is a prerelease version of Senpai.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Senpai --version 2.0.0-alpha.1.0
NuGet\Install-Package Senpai -Version 2.0.0-alpha.1.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="Senpai" Version="2.0.0-alpha.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Senpai --version 2.0.0-alpha.1.0
#r "nuget: Senpai, 2.0.0-alpha.1.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.
// Install Senpai as a Cake Addin
#addin nuget:?package=Senpai&version=2.0.0-alpha.1.0&prerelease

// Install Senpai as a Cake Tool
#tool nuget:?package=Senpai&version=2.0.0-alpha.1.0&prerelease

A library that handles the command parsing, invocation and rendering of your cli app.

Documentation

Read the docs and for more information about dotnet-cli-api, refer to the official docs.

Under the hood

By retrieving metadata through reflection, Senpai is able to dynamically initialize the dotnet-cli-api to act as its command-line interpreter/command-line processor. But all of this comes at the price of some limitations and performance lost.

Getting started

using Senpai;
using Senpai.Token;

static void Main(string[] args)
{
    Cli.Initialize(args);
}

[Command("mycmd", Description = "Its description.")]
public static void myMethod() 
{
    // my code
}

A complex-ish command.

[Command(
    Name: "operation"
)]
[Option<bool>(
    Name: "--delete", 
    Description = "Delete something."
)]
[Argument<string>(
    Name: "A user-input or pathname.", 
    Arity = ArgumentArity.ZeroOrOne
)]
public static void myMethod(string Input, bool Delete) 
{
    // my code
}
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
3.0.0-preview.1 120 1/27/2023
3.0.0-alpha.2 117 1/20/2023
3.0.0-alpha.1 112 1/19/2023
2.0.0 443 11/5/2022
2.0.0-beta.1.0 169 6/15/2022
2.0.0-alpha.1.0 139 6/9/2022
1.0.2 492 4/5/2022
1.0.1 459 4/5/2022
1.0.0 444 4/5/2022