extensions icon indicating copy to clipboard operation
extensions copied to clipboard

Please, give some examples of CommandLineUtils usage

Open quicktrick opened this issue 10 years ago • 9 comments

Thanks in advance!

quicktrick avatar Aug 24 '16 09:08 quicktrick

https://github.com/aspnet/IISIntegration/blob/ef6533cf8524937203847cedf9701fec11740161/src/Microsoft.AspNetCore.Server.IISIntegration.Tools/Program.cs#L14

moozzyk avatar Aug 24 '16 16:08 moozzyk

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.

Eilon avatar Sep 11 '16 23:09 Eilon

I found another example of CommandLineUtils nugetpackage in aspnet benchmarks repository.

nareshpatel avatar Oct 28 '16 03:10 nareshpatel

There's an example and some explanation here, though I'm still trying to make sense of it myself.

necoras avatar Dec 22 '16 23:12 necoras

https://gist.github.com/llint/a361312e9ae01613b0f3ddfc39b3ccf2

llint avatar Mar 16 '17 21:03 llint

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 avatar Mar 30 '17 08:03 MaxCheetham

@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 avatar Mar 30 '17 16:03 Eilon

@Eilon Understood. As an aside it has been really helpful for a number of my projects so thanks for your work!

MaxCheetham avatar Mar 31 '17 07:03 MaxCheetham

This issue was moved to aspnet/Home#2369

aspnet-hello avatar Jan 01 '18 20:01 aspnet-hello