Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I used yq last week to scan through all the Java projects (i.e. Maven pom.xml-files) within our org to check which ones inherit from the corporate pom.

  yq eval --input-format xml --output-format csv '[file_index, file_name, .project.parent.groupId, .project.parent.artifactId, .project.parent.version]' **/pom.xml


Which yq? Last time I checked, there seemed to be a few tools with the same name.


The “go” yq

https://github.com/mikefarah/yq

| yq is a portable command-line YAML, JSON, XML, CSV, TOML and properties processor




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: