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>

Comments

moshe weitzman’s picture

What about contextual and override for these aliases? They work the same as existing bash aliases?

greg.1.anderson’s picture

There 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...

moshe weitzman’s picture

Status: Needs review » Reviewed & tested by the community

Makes 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.

greg.1.anderson’s picture

Status: Reviewed & tested by the community » Patch (to be ported)

My 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.

greg.1.anderson’s picture

Oh, re-open if you have feedback on the docs:

drush help core-cli

 on @alias core-status                     Run the command "core-status" on the 
                                           site indicated by @alias             
 @alias core-status                        An even shorter form that also runs  
                                           "core-status" on the site @alias     
msonnabaum’s picture

Status: Patch (to be ported) » Fixed

I 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.