Closed (fixed)
Project:
Drush
Component:
Core Commands
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
25 Jan 2011 at 19:26 UTC
Updated:
9 Mar 2011 at 06:01 UTC
Here is a new timesaver for those of us who are now using core-cli habitually. This patch allows you to use any drush alias to target just one drush command.
Old way: (still works)
drush> use @alias
@alias> status
... output here
@alias>
New shortcut:
drush> @alias status
... output here
drush>
| Comment | File | Size | Author |
|---|---|---|---|
| bash-aliases-for-drush-aliases.patch | 886 bytes | greg.1.anderson |
Comments
Comment #1
moshe weitzman commentedWhat about contextual and override for these aliases? They work the same as existing bash aliases?
Comment #2
greg.1.anderson commentedThere are no existing bash commands that begin with "@", so I did not implement contextual or override. It seemed unlikely to me that there would ever be a conflict; it would be possible to add this feature as a just-in-case someone made a command called "@dev" that had nothing to do with drush or Drupal...
Comment #3
moshe weitzman commentedMakes sense. Add some docs?
I'd like to hear from Mark and others about whether this is OK for Drush 4.1. It is OK with me but I was never too fussed by these policies.
Comment #4
greg.1.anderson commentedMy opinion is that since drush-4 is not yet in Debian, we might as well slip in new features that do not break existing APIs or command-line interfaces. Feel free to take or reject, though; I'm tracking drush-5.
Committed to HEAD.
Comment #5
greg.1.anderson commentedOh, re-open if you have feedback on the docs:
drush help core-cli
Comment #6
msonnabaum commentedI like this. I was never crazy about the old syntax.
Although I went to port this and it appears to already be there, so I'm just changing the status.