Add --browser cli argument for changing the default browser

Aperta
#712 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript
Ambito
cli

Direzione di ricerca

Start by locating the ui5 serve --open CLI handling and how it invokes the open package. Add support for selecting a browser such as Chrome, Firefox, or Edge, and verify that the chosen browser is used when opening the server root.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

module/ui5-cli

Is your feature request related to a problem? Please describe.

Using ui5 serve --open will open the server root directory in the default browser. But if you want to use a browser different than the default system browser, there is no way to specify it.

Describe the solution you'd like

The open package used by the ui5-tooling supports this feature. A simple solution could be adding an additional cli argument, e.g. --browser when one can specify the browser to be used, e.g. chrome|firefox|edge, the value can be then used when executing the open request.

Describe alternatives you've considered

Copying link and manually opening it in the desired browser

Additional context

Asked also by the community: https://answers.sap.com/questions/13751060/change-default-browser-used-by-vscodefiori-tools.html

Lingua principale
JavaScript
Stelle
511
Fork
83
Merge medio
1g 5h
PR unite (30g)
55

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di UI5/cli

Tutte le issue di UI5/cli

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.