-
Notifications
You must be signed in to change notification settings - Fork 403
Open
Labels
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
});
});
shaggygi, roshangautam, suraciii, reduckted, cdschneider and 10 more