Context
- Drush version 8.x
- Drupal 7 site
Problem
- Mr. HtraenuRekaos has a text file with a list of Drupal contrib modules.
- He wants to get the recommended-install version of all the modules in the list.
- This list is not associated with any pre-existing site, and none of the modules are currently installed.
Non-solutions
- Mr. H has already looked at this SO post: Using wget to get the latest module version, but he does not want to use wget, he wants to use drush
- Mr. H does not want to actually download or install the relevant modules, he only wants to get a list with the latest recommended D7.x version.
Question(s)
- Is there a drush command that will turn before into after?
Before
MODULE_NAME_HERE ;; RECCO_VERSION_HERE
contrib_module_001 ;; __blank__
foobar_module ;; __blank__
htraenurekaos ;; __blank__
After
MODULE_NAME_HERE ;; RECCO_VERSION_HERE
contrib_module_001 ;; 7.x-1.6
foobar_module ;; 7.x-2.2
htraenurekaos ;; 7.x-3.6
version: ~
so it automatically downloads the latest version. If you putversion: '1.2'
it will always download 7.x-1.2 even if a new version 7.x-1.3 is out.