2019-02-22 14:16:21 -05:00
|
|
|
# Produces a GraphViz Dot file from the data in the contributors.json file.
|
|
|
|
# Documentation for this syntax at https://stedolan.github.io/jq/manual
|
2019-03-29 08:25:51 -04:00
|
|
|
to_entries
|
|
|
|
| map(select(.value.group=="Angular" or .value.group=="Collaborators"))
|
2019-02-22 14:16:21 -05:00
|
|
|
| map(.value |= {name: .name, lead: (.lead // .mentor // "")})
|
|
|
|
| map(
|
|
|
|
"\(.key|tojson) [ label = \(.value.name|tojson) ] ",
|
|
|
|
"\(.key|tojson) -> \(.value.lead|tojson)"
|
|
|
|
)
|
|
|
|
[]
|
|
|
|
|