Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I think the title says it all... I may look into this sometime this week to see how hard it would be to pull off..
Comments
Comment #1
Garrett Albright CreditAttribution: Garrett Albright commentedI wouldn't be against this, but I'm totally unfamiliar with Drush, so I wouldn't be able to pull it off myself. (I really should look into it one of these days…)
Comment #2
redpuma CreditAttribution: redpuma commentedI've been using DRUSH but not developing for it yet, however there is a list of modules which integrate with DRUSH here
http://drupal.org/taxonomy/term/4654.
There looks like a good example of how to integrate within the Features module in the
features.drush.inc file.
Maybe if I get time I'd have a look, could be an interesting task.
Comment #3
betz CreditAttribution: betz commentedyeah this would be a great feature indeed :)
Comment #4
Garrett Albright CreditAttribution: Garrett Albright commentedHowdy, folks! Assuming I didn't screw anything up, when the release bot packages the next dev release, it should include support for Drush. Getting it to work ended up being less work than I thought it would be. It seems to work well, but I haven't extensively tested for bugs - that's what you guys are for. If you're interested in using Drush with Zenophile, please give it a try when the package becomes available.
As a sneak peek, here's the help text (though Drupal's code filter seems to be wrapping it strangely).
Comment #5
q0rban CreditAttribution: q0rban commentedGarrett,
Nice! Glad it turned out to be simpler than you thought. :D
Comment #6
q0rban CreditAttribution: q0rban commentedOops, I guess I should mark this as fixed, since it's been committed. Post new issues for bug reports.
Comment #7
Garrett Albright CreditAttribution: Garrett Albright commentedNo, I want to leave this open at least until I make a beta release with these updates.
Comment #8
Garrett Albright CreditAttribution: Garrett Albright commentedOkay, Beta 9 will have the Drush compatibility tweaks. Please try!
Comment #9
scottrigbynice work :)
one thing i noticed: when drush-creating a subtheme from within a site-specific multi-site directory (sites/MYSITE) the subtheme is still added to sites/all/themes - rather than sites/MYSITE/themes. Not sure if that's by design though (though.... is it decent practice to have a subtheme in a site-specific folder when zen is in in sites/all/themes anyway?)
PS, looking forward to using this in combo with #530780: drush commands to administer themes
Comment #10
Garrett Albright CreditAttribution: Garrett Albright commentedIt sort of is. Use a --site parameter to specify which site directory the theme should be placed in.
Yeah, it works fine. I do it all the time.
Comment #11
scottrigbyThanks for the info Garret!