-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can Drush site-alias return the alias names only in v9? #2639
Comments
Not possible right now. You post-process the yaml output (our default format here) with https://github.com/grasmash/yaml-cli |
In Drush 8, |
I think this is a regression, because in drush 8.x, or even early 9.x IIRC, |
This is a change in behavior, but I would not classify it as a regression. Some behavior will change across major version releases. In Drush 8, the default format for an alias varied depending on whether you were listing all aliases, or just one. In Drush 9, we removed the ability to have variable default formats for commands, as being unable to predict the output format of a command is bad for scriptability. Rather than returning Note also that in Drush 9.0.0-beta9, |
OK, calling it regression is a bit hard ! ;) I understand your points, and agree with them. I'm ok with this behavior, I just loose my quick use case : "Type 'drush sa' to quickly know what are the aliases in my current docroot". |
|
In Drush 9, it appears that site-alias will return the alias name plus the configuration of the alias. In cases where I'm trying to find the alias name, I used to do something like:
drush sa | grep example
. Now that will return a large number of results (potentially) as it returns everything.As a workaround on Mac, I can do:
drush sa | grep "^\S" | grep example
but that's more work 😀Using:
Drush version : 9.0-dev-g86760050
The text was updated successfully, but these errors were encountered: