Amusoft.Toolkit.System.CommandLine
2.0.0-alpha.2.15
Prefix Reserved
.NET 5.0
This package targets .NET 5.0. The package is compatible with this framework or higher.
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
This is a prerelease version of Amusoft.Toolkit.System.CommandLine.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Amusoft.Toolkit.System.CommandLine --version 2.0.0-alpha.2.15
NuGet\Install-Package Amusoft.Toolkit.System.CommandLine -Version 2.0.0-alpha.2.15
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="Amusoft.Toolkit.System.CommandLine" Version="2.0.0-alpha.2.15" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Amusoft.Toolkit.System.CommandLine --version 2.0.0-alpha.2.15
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Amusoft.Toolkit.System.CommandLine, 2.0.0-alpha.2.15"
#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 Amusoft.Toolkit.System.CommandLine as a Cake Addin #addin nuget:?package=Amusoft.Toolkit.System.CommandLine&version=2.0.0-alpha.2.15&prerelease // Install Amusoft.Toolkit.System.CommandLine as a Cake Tool #tool nuget:?package=Amusoft.Toolkit.System.CommandLine&version=2.0.0-alpha.2.15&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Amusoft.Toolkit.System.CommandLine
Project state
Features
- Generates Execute method using the parameters of a command
- Generates callback method to get completion options using dependency injection
Code Sample
public partial class SampleCommand : Command
{
public Option<string> OptionOne { get; set; }
public Option<int> OptionTwo { get; set; }
[ProvidesCompletions]
public Argument<int> ArgumentOne { get; set; }
public SampleCommand() : base("sample", "just a sample description")
{
AddOption(OptionOne);
AddOption(OptionTwo);
AddArgument(ArgumentOne);
BindHandler(); <!-- this sets up the SetHandler method for you
}
[GenerateCommandHandler]
public partial class SampleCommandHandler
{
private readonly ILogger _logger;
public SampleCommandHandler(ILogger logger)
{
_logger = logger;
}
// you can override methods here based on your command parameters using the services
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- No dependencies.
-
net5.0
- No dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Amusoft.Toolkit.System.CommandLine:
Package | Downloads |
---|---|
Amusoft.Toolkit.System.CommandLine.Logging
Extended logging functionality |
|
Amusoft.Toolkit.System.CommandLine.Hosting
Tooling to develop hosted application |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.0.0-alpha.77 | 137 | 10/23/2022 |
2.0.0-alpha.68 | 133 | 10/19/2022 |
2.0.0-alpha.66 | 135 | 10/19/2022 |
2.0.0-alpha.63 | 133 | 10/19/2022 |
2.0.0-alpha.61 | 103 | 10/18/2022 |
2.0.0-alpha.57 | 94 | 10/18/2022 |
2.0.0-alpha.55 | 102 | 10/18/2022 |
2.0.0-alpha.51 | 109 | 10/16/2022 |
2.0.0-alpha.46 | 111 | 10/15/2022 |
2.0.0-alpha.44 | 102 | 10/15/2022 |
2.0.0-alpha.24 | 105 | 10/12/2022 |
2.0.0-alpha.22 | 109 | 10/12/2022 |
2.0.0-alpha.20 | 108 | 10/12/2022 |
2.0.0-alpha.14 | 164 | 10/8/2022 |
2.0.0-alpha.2.15 | 106 | 10/10/2022 |
2.0.0-alpha.1.73 | 105 | 10/21/2022 |
2.0.0-alpha.1.71 | 117 | 10/20/2022 |
2.0.0-alpha.1.70 | 139 | 10/20/2022 |
Generators for working with System.CommandLine