Please, give some examples of CommandLineUtils usage
Thanks in advance!
https://github.com/aspnet/IISIntegration/blob/ef6533cf8524937203847cedf9701fec11740161/src/Microsoft.AspNetCore.Server.IISIntegration.Tools/Program.cs#L14
Indeed, the best place to find sample usage is in other projects that use this library. It's not really a part of ASP.NET/EF per se, it's just an implementation detail of various command line utilities that needed this functionality. We hope others will find it useful, but we have no plans to write any specific samples or docs for it.
I found another example of CommandLineUtils nugetpackage in aspnet benchmarks repository.
There's an example and some explanation here, though I'm still trying to make sense of it myself.
https://gist.github.com/llint/a361312e9ae01613b0f3ddfc39b3ccf2
Here is a more OOP biased usage: https://github.com/MaxCheetham/CommandLineUtilsUsage
The basis is that you invoke an overall grouping class (in the examples case "Command Group") and then from there call "Task Classes" one by one, I guess general usage would be each "task class" will then call the relevant areas of your code to complete the tasks they relate to.
Let me know if you have any questions.
@Eilon I would be happy to flush this out some more if you wanted some usages added to the project?
@MaxCheetham this is barely a supported library, so per my earlier comment it's generally "just enough" for what the ASP.NET and EF Core command-line tools need to operate. I'm glad that others have found it useful, but we're not looking to add anything to it if it's outside the scope of what is needed here.
@Eilon Understood. As an aside it has been really helpful for a number of my projects so thanks for your work!
This issue was moved to aspnet/Home#2369