Skip to content
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

Support drush --version (and `drush version) #213

Closed
rfay opened this issue Jan 30, 2020 · 2 comments
Closed

Support drush --version (and `drush version) #213

rfay opened this issue Jan 30, 2020 · 2 comments

Comments

@rfay
Copy link

rfay commented Jan 30, 2020

I was trying to test that we got latest extensions into ddev.

$ drush --version
Drush Launcher Version: 0.6.0
This command is not supported yet by Backdrop.

$ drush8 --version
This command is not supported yet by Backdrop.

It would be super nice if instead of hiding the normal drush version result with a "not supported" it would show backdrop extensions version in addition to drush version.

I really like how drush launcher does this, reporting

$ drush --version
Drush Launcher Version: 0.6.0
Drush Commandline Tool 10.2.0
@serundeputy
Copy link
Member

Hello @rfay thanks for bringing up this issue.

PR: #214

You can now get the versions of Drush proper and the Backdrop Drush Extension with drush version or drush --version.

└─ $ ∴ lando.dev drush version
Drush proper version: 8.2.4-dev
Backdrop Drush Extension version: 1.x-1.x

Honorable mention drush st; also returns the two versions plus other status info:

└─ $ ∴ lando.dev drush st;
 Backdrop version         :  1.14.x-dev               
 Site URI                 :  https://drush.lndo.site  
 Database driver          :  mysql                    
 Database hostname        :  database                 
 Database port            :  3306                     
 Database username        :  backdrop                 
 Database name            :  backdrop                 
 Backdrop bootstrap       :  Successful               
 Backdrop user            :                           
 PHP executable           :  /usr/local/bin/php       
 PHP configuration        :                           
 PHP OS                   :  Linux                    
 Drush script             :  /app/web/drush/drush.php 
 Drush version            :  8.2.4-dev                
 Backdrop Drush           :  1.x-1.x                  
 Drush temp directory     :  /tmp                     
 Drush configuration      :                           
 Drush alias files        :                           
 Install profile          :  standard                 
 Backdrop Settings File   :  ./settings.php 

serundeputy added a commit that referenced this issue Jan 30, 2020
@serundeputy
Copy link
Member

This is merged and available in 1.x-1.x will ship with 1.3.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants