livebud/bud

feature suggestion: `bud run` should launch browser (maybe with a flag to enable?)

開放

#333 建立於 2022年11月27日

 (1 則留言) (0 個反應) (0 位負責人)JavaScript (211 個分叉)batch import
help wanted

倉庫指標

星標
 (5,391 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

When launching the dev server, I have to manually open a browser tab and load the URL. It would be cool if it called out to the OS and simply told it to open the dev server URL. The quick and dirty (on macOS) is to shell out to open $URL but I imagine there's a go module somewhere that does this.

Even a flag to do it would be fine, as I invoke bud run from a Makefile (make dev).

c.f.: https://talk.jekyllrb.com/t/automatically-start-browser-on-localhost-4000-after-jekyll-serve/4916/5

貢獻者指南