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.
It's high time I be able to type 'eff you' and have it get something useful done at the same time. In light of this, I think we need some aliases for the drush commands:
For instance, say I want to update my Suckah feature. Currently I must type:
drush features-update suckah
I propose:
drush fu suckah
Or, imagine that I want to update all features. Currently I type this:
drush features-update-all
Why not this lovely piece of command line beauty?
drush fu-all
Enough small talk. Here's the patch!
Comment | File | Size | Author |
---|---|---|---|
eff-you-all.patch | 1.5 KB | q0rban | |
Comments
Comment #1
yhahn CreditAttribution: yhahn commentedCommunity feedback pls.
Comment #2
jmiccolis CreditAttribution: jmiccolis commentedWow and the patch is even fair to the `features-revert` command, short form is the much less fun `fr`. I think that this makes the patch socially acceptable.
Comment #3
q0rban CreditAttribution: q0rban commentedI like to pronounce that 'effer', as in 'Eff the effin effers.'
Comment #4
sirkitree CreditAttribution: sirkitree commentedHaha! Plus 1! This is actually pretty useful as well as funny. Tested and working on my end. Anything to shorten commands is great in my book, and I do tend to type these command quite often now.
Comment #5
seanrI am all over this, having had to type out features-update at least a dozen times in the last week. Got a good laugh out of my coworker too. ;-)
Comment #6
walkah CreditAttribution: walkah commentedPlus one! This is awesome. As a super special bonus : fixing the typo in the title ;-)
Comment #7
randallknutson CreditAttribution: randallknutson commentedThis would be hugely helpful for me. I type drush features-update and drush features-revert dozens of times a day. I've been wanting to fu for a long time.
Comment #8
randallknutson CreditAttribution: randallknutson commentedWhoops. Commit collide changed title back.
Comment #9
mfer CreditAttribution: mfer commentedAs someone with the handle mfer (think mf...er and that double meaning on the tip of your tongue) I think this would be fun.
Though, I do have an ssh alias that when used goes "ssh it". So, this is just a warning.
Comment #10
sirkitree CreditAttribution: sirkitree commentedNow I just need an mfer feature so i can drush fu mfer ;)
Comment #11
chrisfromredfin+1. Hilarity aside, I'm huge on the short-form aliases. Drush is a command line tool, and being zippier on the CLI is always good. Huge #WIN, though, for being the first f-command to be able to claim the 'fu' :)
Comment #12
q0rban CreditAttribution: q0rban commentedPlease note: In light of the pronunciation for 'fr' outlined in #3, proceed with caution when pronouncing the 'fra' command alias. You may get more than you bargained for.
Comment #13
q0rban CreditAttribution: q0rban commentedCross post.
Comment #14
alex_b CreditAttribution: alex_b commentedLOL - Love it.
Comment #15
EclipseGc CreditAttribution: EclipseGc commentedyeah, I'm afraid I have no options except to +1 this... so +1
Comment #16
crashtest_ CreditAttribution: crashtest_ commentedAbsolutely perfect! +1
Comment #17
tranquille CreditAttribution: tranquille commentedyes - for the lulz
+1
Comment #18
brentratliff CreditAttribution: brentratliff commented+ 1, thanks.
Comment #19
bonobo CreditAttribution: bonobo commentedNow that we are using features more and more to manage changes, we are swearing less and less.
This patch remedies that situation.
+1 to the functionality.
Comment #20
beeradb CreditAttribution: beeradb commentedReally looking forward to my first drush fu. +1.
Comment #21
MichaelP CreditAttribution: MichaelP commentedwhat about "drush wtf" as opposed to "drush status".
Or is that a different feature request? ;-)
Comment #22
yhahn CreditAttribution: yhahn commentedWell I suppose it's time. Committed: http://drupal.org/cvs?commit=372314
Comment #23
basvredelingI like the idea of short aliases but it should interfere with other modules commands. So drush fu is a bit too short for my taste. could coincide with drush commands for any contrib starting with f. Howsabout "drush feat-up" or something of the like? To distinguish drush core commands from drush contrib commands. Or a configurable alias list. That would be sexy.
[edit]never mind, I see it's been committed.[/edit]
Comment #24
mfer CreditAttribution: mfer commentedThis should to be ported to the Drupal-7--1 branch. I don't see that as a version option though.
Comment #25
jcamfield CreditAttribution: jcamfield commentedIt would also be nice to do a dry run to see what would be updated and what queries would be run, so in longhand:
features-upgrade-check
The shorthand is left as an exercise for the implementing developer :)
Comment #26
samhassell CreditAttribution: samhassell commentedJust read about this in the release notes, OMG im updating now!
Comment #27
yhahn CreditAttribution: yhahn commentedSorry about that, setting version.
Comment #28
yhahn CreditAttribution: yhahn commentedNot critical.
Comment #29
yhahn CreditAttribution: yhahn commented