Albatross.CommandLine.Inputs 8.0.1

Prefix Reserved
This package has a SemVer 2.0.0 package version: 8.0.1+23a84a7.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Albatross.CommandLine.Inputs --version 8.0.1
                    
NuGet\Install-Package Albatross.CommandLine.Inputs -Version 8.0.1
                    
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.1" />
                    
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.1" />
                    
Directory.Packages.props
<PackageReference Include="Albatross.CommandLine.Inputs" />
                    
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 Albatross.CommandLine.Inputs --version 8.0.1
                    
#r "nuget: Albatross.CommandLine.Inputs, 8.0.1"
                    
#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.1
                    
#: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.1
                    
Install as a Cake Addin
#tool nuget:?package=Albatross.CommandLine.Inputs&version=8.0.1
                    
Install as a Cake Tool

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 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.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Albatross.CommandLine.Inputs:

Package Downloads
Albatross.EFCore.Admin

Package Description

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 36 1/9/2026
8.0.1-130.main 29 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