Useful random bash stuff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Drupal 8+: Get installed module versions based on info.yml files | |
for yml in $(find web/modules/contrib -maxdepth 2 -type f -name '*.info.yml'); do grep -Hi 'version:' "$yml"; done; | |
# | |
# Composer: Get all drupal modules in lock file with relative version | |
jq -c '.packages[] | ({(.name): .version})' < composer.lock | grep --color '"drupal/' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment