-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option to output to file #91
Comments
Can you explain why piping is problematic? I don't see any good reason this would be a problem... |
We want to run it as a DotNetCoreCLI@2 task in Azure DevOps Pipelines. I had no luck adding a pipe to file to that command (perhaps due to how it is executed or what OS it is being run on) |
You could also use https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/powershell-v2?view=azure-pipelines to be platform independent... |
Just to explain why I'm not too fond of adding file output to nuget-license:
The TLDR is that adding file output could add quite some complexity to nuget-license which seems a little out of scope given that there is the possibility of piping.... |
I did try both cmd and PowerShell. I could not get it to work but that could be just me not doing it correctly. I understand if you do not want to add file output, I will just give my "end user" reason to why I would like it. Do not take this as anything other then a suggestion (and feel free to ignore it, it is not like I am paying you or anything :)
|
I'll see what I can do. If you want to speed up the process of getting this feature, feel free to implement it yourself and create a Pull Request. |
Definitely would like to see this too; we have to work on PS and bash and it's just going to be easier and more complete to have a |
I just opened #100. Can you please test whether this change will satisfy your needs? |
As soon as I get back from travel I’ll give it a shot but from the code it looks perfect.
Nate Carpenter
Securiport LLC
Chief Technology Officer
…________________________________
From: Simon Ensslen ***@***.***>
Sent: Saturday, November 2, 2024 4:29:10 AM
To: sensslen/nuget-license ***@***.***>
Cc: Nate Carpenter ***@***.***>; Comment ***@***.***>
Subject: Re: [sensslen/nuget-license] Add option to output to file (Issue #91)
I just created #100<#100>. Can you please test whether this change will satisfy your needs?
—
Reply to this email directly, view it on GitHub<#91 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AFZJIPJ4QI2V2ALCC4N56M3Z6PQBNAVCNFSM6AAAAABPRXLYF2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJSGU2DIMBVG4>.
You are receiving this because you commented.Message ID: ***@***.***>
|
I would be good to be able to generate a file as an option. A .txt or .json depending on format. Piping the result is problematic on our build server
The text was updated successfully, but these errors were encountered: