When using the drush command site-set with the alias in the usual place (between drush and the command) the report is that alias is set to @none.
When the alias is after the site-set command, it works fine, but autocomplete doesn't work, the alias isn't autocompleted.

Comments

Owen Barton’s picture

Category: bug » support
Status: Active » Closed (works as designed)

The alias should follow the site-set command - it is not intended to work the other way around (the alias is the argument, not a site to operate the command on).

For the autocomplete issue - I think this is a duplicate of #1785072: when site is set, autocomplete doesn't work identical to when using the alias directly.

daften’s picture

Status: Closed (works as designed) » Active

No, it is not a duplicate.
The other issue is for after the site-set command has been issued. This is for when using site-set.
When I type e.g. drush site-set @si and press tab, I don't get my aliases that would fit there.

Owen Barton’s picture

Version: 7.x-5.7 » 8.x-6.x-dev
Status: Active » Fixed

Committed a complete hook for this.

Status: Fixed » Closed (fixed)

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