Nullean.Argh.Hosting
0.23.0
See the version list below for details.
dotnet add package Nullean.Argh.Hosting --version 0.23.0
NuGet\Install-Package Nullean.Argh.Hosting -Version 0.23.0
<PackageReference Include="Nullean.Argh.Hosting" Version="0.23.0" />
<PackageVersion Include="Nullean.Argh.Hosting" Version="0.23.0" />
<PackageReference Include="Nullean.Argh.Hosting" />
paket add Nullean.Argh.Hosting --version 0.23.0
#r "nuget: Nullean.Argh.Hosting, 0.23.0"
#:package Nullean.Argh.Hosting@0.23.0
#addin nuget:?package=Nullean.Argh.Hosting&version=0.23.0
#tool nuget:?package=Nullean.Argh.Hosting&version=0.23.0
<p align="center"><img src="https://cdn.jsdelivr.net/gh/nullean/argh@main/docs/images/png/argh-lockup-348x192.png" alt="--argh_" width="174" height="96"/></p>
Nullean.Argh.Hosting
Microsoft.Extensions.Hosting integration for the Nullean.Argh CLI framework.
Install
dotnet add package Nullean.Argh.Hosting
Quick Start
using Microsoft.Extensions.Hosting;
using Nullean.Argh.Hosting;
var builder = Host.CreateApplicationBuilder(args);
builder.Services.AddArgh(args, b =>
{
b.Map("hello", MyHandlers.SayHello);
});
await builder.Build().RunAsync();
What You Get
- Dependency injection — handler parameters resolved from the DI container with proper lifetimes
- CancellationToken linked to host — graceful shutdown propagates to your commands automatically
- Log suppression for intrinsic commands —
--help,--version, completions, and__schemarun silently without host startup noise
Native AOT size
Microsoft.Extensions.Hosting (DI, logging, options) adds several MB to a Native AOT binary, independent of Argh — this package is a thin adapter over it. If you don't need DI or hosted-service integration, use Nullean.Argh directly and call app.RunAsync(args) from Main for a much smaller AOT footprint. See AOT and binary size for measurements.
Documentation
Full documentation is available at nullean.github.io/argh.
License
MIT — see LICENSE for details.
Links
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. 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 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 is compatible. 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 is compatible. 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. net11.0 is compatible. |
| .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. |
-
.NETStandard 2.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Logging (>= 9.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Options (>= 9.0.0)
- Nullean.Argh.Core (>= 0.23.0)
- Nullean.Argh.Interfaces (>= 0.23.0)
-
net10.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Logging (>= 9.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Options (>= 9.0.0)
- Nullean.Argh.Core (>= 0.23.0)
- Nullean.Argh.Interfaces (>= 0.23.0)
-
net11.0
- Microsoft.Extensions.Logging (>= 9.0.0)
- Nullean.Argh.Core (>= 0.23.0)
- Nullean.Argh.Interfaces (>= 0.23.0)
-
net8.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Logging (>= 9.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Options (>= 9.0.0)
- Nullean.Argh.Core (>= 0.23.0)
- Nullean.Argh.Interfaces (>= 0.23.0)
-
net9.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Logging (>= 9.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Options (>= 9.0.0)
- Nullean.Argh.Core (>= 0.23.0)
- Nullean.Argh.Interfaces (>= 0.23.0)
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 |
|---|---|---|
| 0.30.1 | 38 | 11/14/2026 |
| 0.30.0 | 92 | 11/12/2026 |
| 0.29.0 | 246 | 11/12/2026 |
| 0.28.0 | 126 | 11/12/2026 |
| 0.27.2 | 114 | 11/11/2026 |
| 0.27.1 | 162 | 11/11/2026 |
| 0.25.0 | 153 | 11/11/2026 |
| 0.24.0 | 82 | 11/11/2026 |
| 0.23.0 | 77 | 11/11/2026 |
| 0.22.1 | 89 | 11/11/2026 |
| 0.21.0 | 212 | 10/3/2026 |
| 0.20.0 | 121 | 10/3/2026 |
| 0.19.0 | 112 | 9/29/2026 |
| 0.18.0 | 202 | 8/19/2026 |
| 0.17.1 | 144 | 8/14/2026 |
| 0.17.0 | 149 | 7/24/2026 |
| 0.16.4 | 33,411 | 5/20/2026 |
| 0.16.3 | 1,762 | 5/18/2026 |
| 0.16.2 | 285 | 5/17/2026 |
| 0.16.1 | 141 | 5/11/2026 |