MCPcopy Create free account
hub / github.com/driangle/taskmd / openBrowser

Function openBrowser

apps/cli/internal/cli/web.go:252–265  ·  view source on GitHub ↗
(url string)

Source from the content-addressed store, hash-verified

250}
251
252func openBrowser(url string) {
253 var cmd *exec.Cmd
254 switch runtime.GOOS {
255 case "darwin":
256 cmd = exec.Command("open", url)
257 case "linux":
258 cmd = exec.Command("xdg-open", url)
259 case "windows":
260 cmd = exec.Command("rundll32", "url.dll,FileProtocolHandler", url)
261 default:
262 return
263 }
264 cmd.Run() //nolint:errcheck
265}

Callers 1

runWebStartFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected