![]() |
VOOZH | about |
dotnet add package Albatross.CommandLine.Inputs --version 8.0.14
NuGet\Install-Package Albatross.CommandLine.Inputs -Version 8.0.14
<PackageReference Include="Albatross.CommandLine.Inputs" Version="8.0.14" />
<PackageVersion Include="Albatross.CommandLine.Inputs" Version="8.0.14" />Directory.Packages.props
<PackageReference Include="Albatross.CommandLine.Inputs" />Project file
paket add Albatross.CommandLine.Inputs --version 8.0.14
#r "nuget: Albatross.CommandLine.Inputs, 8.0.14"
#:package Albatross.CommandLine.Inputs@8.0.14
#addin nuget:?package=Albatross.CommandLine.Inputs&version=8.0.14Install as a Cake Addin
#tool nuget:?package=Albatross.CommandLine.Inputs&version=8.0.14Install as a Cake Tool
This project provides a collection of reusable System.CommandLine arguments and options.
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.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.[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 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on Albatross.CommandLine.Inputs:
| Package | Downloads |
|---|---|
|
Albatross.EFCore.Admin
Package Description |
This package is not used by any popular GitHub repositories.