Open
Description
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
});
});