Skip to content

Instantly share code, notes, and snippets.

@binarytemple
Created April 23, 2017 20:51
Show Gist options
  • Save binarytemple/42d34f1dc131ca0abc5d03e7025c4b5d to your computer and use it in GitHub Desktop.
Save binarytemple/42d34f1dc131ca0abc5d03e7025c4b5d to your computer and use it in GitHub Desktop.
jq / yq
yq < ./docker-compose.yml ".services| to_entries []| { id: .key, ports: .value.ports }"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment