Nullean.Argh.Hosting
0.18.0
dotnet add package Nullean.Argh.Hosting --version 0.18.0
NuGet\Install-Package Nullean.Argh.Hosting -Version 0.18.0
<PackageReference Include="Nullean.Argh.Hosting" Version="0.18.0" />
<PackageVersion Include="Nullean.Argh.Hosting" Version="0.18.0" />
<PackageReference Include="Nullean.Argh.Hosting" />
paket add Nullean.Argh.Hosting --version 0.18.0
#r "nuget: Nullean.Argh.Hosting, 0.18.0"
#:package Nullean.Argh.Hosting@0.18.0
#addin nuget:?package=Nullean.Argh.Hosting&version=0.18.0
#tool nuget:?package=Nullean.Argh.Hosting&version=0.18.0
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. |
| .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.18.0)
- Nullean.Argh.Interfaces (>= 0.18.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.18.0)
- Nullean.Argh.Interfaces (>= 0.18.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.18.0)
- Nullean.Argh.Interfaces (>= 0.18.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.18.0)
- Nullean.Argh.Interfaces (>= 0.18.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.18.0 | 0 | 8/19/2026 |
| 0.17.1 | 50 | 8/14/2026 |
| 0.17.0 | 108 | 7/24/2026 |
| 0.16.4 | 20,125 | 5/20/2026 |
| 0.16.3 | 1,729 | 5/18/2026 |
| 0.16.2 | 260 | 5/17/2026 |
| 0.16.1 | 120 | 5/11/2026 |
| 0.16.0 | 3,267 | 5/7/2026 |
| 0.15.4 | 305 | 5/7/2026 |
| 0.15.3 | 144 | 5/7/2026 |
| 0.15.2 | 107 | 5/7/2026 |
| 0.15.1 | 262 | 5/6/2026 |
| 0.15.0 | 118 | 5/6/2026 |
| 0.14.1 | 98 | 5/6/2026 |
| 0.14.0 | 108 | 5/6/2026 |
| 0.13.1 | 110 | 5/4/2026 |
| 0.13.0 | 145 | 4/30/2026 |
| 0.12.5 | 182 | 4/29/2026 |
| 0.12.4 | 121 | 4/29/2026 |
| 0.12.3 | 136 | 4/29/2026 |