xref: /aosp_15_r20/build/bazel/json_module_graph/usedVariations.jq (revision 7594170e27e0732bc44b93d1440d87a54b6ffe7c)
1# CMD: Prints the set of variations and their values used in the input
2
3[[.[] | .Variations | select(. != null) | to_entries] |
4  flatten |
5  group_by(.key) |
6  .[] |
7  {key: .[0].key, value: map(.value) | unique}] |
8  from_entries
9