hasura / hasura/graphql-engine

The hasura console cli to reuse same tab if already open

Open
#9,781 0 comments 0 reactions 0 assignees View on GitHub
k/enhancement t/growth
Dominant language
TypeScript
Stars
32.1k
Forks
3k
PR merge metrics
PR metrics pending

Description

### Is your proposal related to a problem?

When you start `hasura console` it always opens in a new tab so I end up having multiple tabs that bloats my browser. I have a monorepo with multiple packages starting up from one command. I want the console to start a tab but I don't want a new instance every time I restart my project.

### Describe the solution you'd like

In node community we use a module called to prevent such thing: https://www.npmjs.com/package/better-opn. There is probably something similar in go that you can use.

### Describe alternatives you've considered

The only solution right is now is to:
`hasura console --no-browser && node custom-made-better-open.js`

Contributor guide

Open the contributing guide

Research direction

Start with the `hasura console` CLI behavior and its `--no-browser` option; compare the requested reuse behavior with the `better-opn` module referenced in the issue and investigate the corresponding Go browser-opening support. Done means repeated console starts reuse an already open tab instead of creating another, while `--no-browser` still avoids opening one.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, node.js
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.