Align System.CommadLine.Hosting model with the way ASP.NET Core uses Generic Host.
It should be possible to configure CommandLineBuilder like this:
public static IHostBuilder CreateHostBuilder(string[] args) =>
CommandLineHost.CreateDefaultBuilder(args)
.ConfigureAppConfiguration((hostingContext, config) =>
{
})
.ConfigureCommandLineDefaults(cmdHost =>
{
cmdHost.ConfigureServices(services =>
{
})
})
.ConfigureCommandLineBuilder(cmdBuilder => // CommandLineBuilder
{
cmdBuilder.UseReflectionAppModel(); // e.g. https://github.com/KathleenDollard/command-line-api-starfruit
});
});
Align
System.CommadLine.Hostingmodel with the way ASP.NET Core uses Generic Host.It should be possible to configure CommandLineBuilder like this: