Albatross.CommandLine.Inputs
8.0.2
Prefix Reserved
This package has a SemVer 2.0.0 package version: 8.0.2+c7a7703.
dotnet add package Albatross.CommandLine.Inputs --version 8.0.2
NuGet\Install-Package Albatross.CommandLine.Inputs -Version 8.0.2
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="Albatross.CommandLine.Inputs" Version="8.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Albatross.CommandLine.Inputs" Version="8.0.2" />
<PackageReference Include="Albatross.CommandLine.Inputs" />
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 Albatross.CommandLine.Inputs --version 8.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Albatross.CommandLine.Inputs, 8.0.2"
#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 Albatross.CommandLine.Inputs@8.0.2
#: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=Albatross.CommandLine.Inputs&version=8.0.2
#tool nuget:?package=Albatross.CommandLine.Inputs&version=8.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Albatross.CommandLine.Inputs
This project provides a collection of reusable System.CommandLine arguments and options.
Arguments
InputDirectoryArgument: An argument that requires a path to an existing directory.InputFileArgument: An argument that requires a path to an existing file.OutputDirectoryArgument: An argument for specifying an output directory.OutputFileArgument: An argument for specifying an output file.
Options
InputDirectoryOption: An option that accepts a path to an existing directory.InputFileOption: An option that accepts a path to an existing file.OutputDirectoryOption: An option for specifying an output directory.OutputDirectoryWithAutoCreateOption: An option for specifying an output directory, with the added feature of automatically creating the directory if it does not exist.OutputFileOption: An option for specifying an output file.FormatExpressionOption: An option that contains a formatting expression that can shape the output of values. The syntax for the expression can be found here.
Usage
[Verb<HelloWorldParams, HelloWorldHandler>("hello world")]
public record class HelloWorldParams {
[UseOption<InputFileOption>]
public required FileInfo Input { get; init; }
}
public class HelloWorldHandler : IAsyncCommandHandler {
HelloWorldParams parameters;
public HelloWorldHandler(HelloWorldParams parameters) {
this.parameters = parameters;
}
public async Task<int> InvokeAsync(CancellationToken cancellationToken) {
using(var stream = this.parameters.Input.OpenRead()) {
// do work
}
return 0;
}
}
| Product | Versions 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
- Albatross.CommandLine (>= 8.0.2)
- Albatross.Text.CliFormat (>= 9.0.3)
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 |
|---|---|---|
| 8.0.2 | 24 | 1/11/2026 |
| 8.0.1 | 35 | 1/9/2026 |
| 8.0.1-130.main | 28 | 1/8/2026 |
| 8.0.1-114.main | 27 | 1/4/2026 |
| 8.0.1-113.main | 25 | 1/4/2026 |
| 8.0.1-112.main | 31 | 1/4/2026 |
| 8.0.1-103.main | 32 | 1/2/2026 |