[eas-cli] Add eas browse command#4003
Open
jonsamp wants to merge 4 commits into
Open
Conversation
Add `eas browse [PAGE]` to open the project page on expo.dev, with an optional whitelisted page argument (e.g. `build`, `hosting`, `cicd`) for project subpages and a `--no-browser` flag to print the URL instead. `eas open` becomes a thin alias that opens the project dashboard.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4003 +/- ##
==========================================
+ Coverage 59.67% 59.73% +0.06%
==========================================
Files 941 942 +1
Lines 41319 41347 +28
Branches 8675 8680 +5
==========================================
+ Hits 24654 24693 +39
+ Misses 16571 16560 -11
Partials 94 94 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
✅ Thank you for adding the changelog entry! |
|
Subscribed to pull request
Generated by CodeMention Warning: The preamble and epilogue options in commentConfiguration are deprecated. Use template instead. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
eas openopens the project dashboard but has no way to jump straight to a specific project subpage (builds, submissions, updates, workflows, hosting, etc.). This adds aeas browsecommand that accepts an optional page argument so users can go directly where they want from the terminal. This is similar to thegh browsecommand.I want this so it's easier to stay in the command line and to zoom to exactly where i need. I also want agents to be able to use this command to share where on our website they can find things in a more human-friendly format.
Linear: ENG-24214
How
eas browse [PAGE].PAGEis a whitelisted argument mapped to its dashboard path viaPROJECT_PAGES; both the EAS command name and the website wording resolve to the same page (e.g.build/builds,submit/submissions,workflow/workflows/cicd). With no argument it opens the project dashboard.--no-browser/-nflag to print the URL instead of opening a browser.getProjectPageUrl(accountName, projectName, page?)inbuild/utils/url.ts;getProjectDashboardUrlnow delegates to it. Account and project names areencodeURIComponent-escaped, consistent with the other builders in that file.eas openinto a thin alias that delegates toBrowse.run([]). It's the same as callingeas browse.Test Plan
eas browse [name of subpage]and also test--no-browser|-n. Examples:eas browse build,eas browse cicd.eas browsewith no arguments and make sure you see the project overview dashboard.