Install
dotnet add package Nullean.Argh.Hosting --version 0.21.0
| Product | Versions |
|---|---|
| .NET | |
| .NET Standard |
README
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
Changes from Previous Version
No structural changes between v0.20.0 and v0.21.0.
Adoption Assessment
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
Compatibility metadata lists 4 target frameworks; confirm the exact target used by your application.The published metadata declares 28 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.