repo_description: Supabase CLI. Manage postgres migrations, run Supabase locally, deploy edge functions. Postgres backups. Generating types from your database schema.
repo_topics: cli database database-management dbms environment local postgres postgresql supabase
code: //go:build linux
  
  package login
  
  import (
  	"bytes"
  	"context"
  	"os"
  	"os/exec"
  )
  
  func RunOpenCmd(ctx context.Context, input string) error {
  	if f, err := os.ReadFile("/proc/sys/kernel/osrelease"); err == nil && bytes.Contains(f, []byte("WSL")) {
  		return exec.CommandContext(ctx, "wslview", input).Run()
  	}
  	return exec.CommandContext(ctx, "xdg-open", input).Run()
  }
  