Execute command line validations #606
-
I see that there are a number of validations that are represented in the UI:
I would like to be able to run these validations by command line to be able to introduce it in the CI process (PR, nightlies, ...). Is there any way? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
@tom-englert but I see that the script that comes with it only works with Excel files? I want it to scan the resx files I have in the repository for errors based on the rules it has defined. |
Beta Was this translation helpful? Give feedback.
-
No, you can script anything |
Beta Was this translation helpful? Give feedback.
-
Can you give me an example or at least what classes do I need? Thanks |
Beta Was this translation helpful? Give feedback.
-
It's just exposing the model, e.g. ResXResourceManager/src/ResXManager.Scripting/Sample.ps1 Lines 23 to 26 in de9161d will get you here: ResXResourceManager/src/ResXManager.Model/ResourceManager.cs Lines 82 to 85 in de9161d so you can iterate over all items, checking the information you want |
Beta Was this translation helpful? Give feedback.
-
Thanks but I mean how can I import the resx files in order to get that table entries In the sample ps1 there is only a importExcel reference |
Beta Was this translation helpful? Give feedback.
-
ResXResourceManager/src/ResXManager.Scripting/Sample.ps1 Lines 7 to 13 in de9161d |
Beta Was this translation helpful? Give feedback.
ResXResourceManager/src/ResXManager.Scripting/Sample.ps1
Lines 7 to 13 in de9161d