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

Add browsers command #1041

Closed
bahmutov opened this issue Dec 7, 2017 · 2 comments
Closed

Add browsers command #1041

bahmutov opened this issue Dec 7, 2017 · 2 comments
Assignees
Labels
cli type: enhancement Requested enhancement of existing feature

Comments

@bahmutov
Copy link
Contributor

bahmutov commented Dec 7, 2017

A new good feature to have: cypress browsers command that would show a list of detected browsers. Now similar information can be shown using

$ node node_modules/cypress/dist/Cypress.app/Contents/Resources/app/packages/launcher/index.js 
Launcher project exports
{ [Function: init]
  update: [Function: update],
  detect: [Function: detectBrowsers] }
⛔️ please use it as a module, not from CLI
detected 3 browsers
[ { name: 'chrome',
    displayName: 'Chrome',
    version: '62.0.3202.94',
    path: '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome',
    majorVersion: '62' },
  { name: 'chromium',
    displayName: 'Chromium',
    version: '60.0.3110.0',
    path: '/Applications/Chromium.app/Contents/MacOS/Chromium',
    majorVersion: '60' },
  { name: 'canary',
    displayName: 'Canary',
    version: '65.0.3287.0',
    path: '/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary',
    majorVersion: '65' } ]
@bahmutov bahmutov self-assigned this Dec 7, 2017
@bahmutov bahmutov added cli type: enhancement Requested enhancement of existing feature labels Dec 7, 2017
@bahmutov
Copy link
Contributor Author

bahmutov commented Dec 8, 2017

Sample output

$ bin/cypress browsers
detected 3 browsers
Browser info
-------------------------------------------------
name      displayName  majorVersion  version     
--------  -----------  ------------  ------------
chrome    Chrome       62            62.0.3202.94
chromium  Chromium     60            60.0.3110.0 
canary    Canary       65            65.0.3287.0 

Browser paths
------------------------------------------------------------------------------------
name      path                                                                      
--------  --------------------------------------------------------------------------
chrome    /Applications/Google Chrome.app/Contents/MacOS/Google Chrome              
chromium  /Applications/Chromium.app/Contents/MacOS/Chromium                        
canary    /Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary

@jennifer-shehane
Copy link
Member

Actually this is still a pretty good idea. Although, I think this could be bundled into the cypress info command. It is in proposal here: #4540

I'm going to close this issue and make a comment there about this browser info formatting - because I like how you have it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli type: enhancement Requested enhancement of existing feature
Projects
None yet
Development

No branches or pull requests

2 participants