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 supabase studio command #2945

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Conversation

jsj
Copy link

@jsj jsj commented Dec 4, 2024

What kind of change does this PR introduce?

Feature - Adds a new CLI command supabase studio to open Supabase Studio directly from the terminal

What is the current behavior?

Currently, users need to manually open their browser and navigate to the Supabase Studio dashboard.

What is the new behavior?

This PR adds a new studio command that automatically opens the Supabase Studio dashboard in the user's default browser. The command:

  • Works cross-platform (macOS, Windows, and Linux)
  • Uses the appropriate system command to open the browser (open for macOS, start for Windows, xdg-open for Linux)
  • Provides feedback to the user by displaying the URL being opened
  • Handles errors gracefully with descriptive error messages

Example usage:

supabase studio

@coveralls
Copy link

Pull Request Test Coverage Report for Build 12164787997

Details

  • 3 of 19 (15.79%) changed or added relevant lines in 1 file are covered.
  • 7 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.1%) to 59.485%

Changes Missing Coverage Covered Lines Changed/Added Lines %
cmd/studio.go 3 19 15.79%
Files with Coverage Reduction New Missed Lines %
internal/storage/rm/rm.go 2 89.53%
internal/gen/keys/keys.go 5 12.9%
Totals Coverage Status
Change from base Build 12155003566: -0.1%
Covered Lines: 6394
Relevant Lines: 10749

💛 - Coveralls

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

Successfully merging this pull request may close these issues.

2 participants