MCPcopy Index your code
hub / github.com/rilldata/rill / Open

Function Open

cli/pkg/browser/browser.go:9–20  ·  view source on GitHub ↗
(url string)

Source from the content-addressed store, hash-verified

7)
8
9func Open(url string) error {
10 switch runtime.GOOS {
11 case "linux":
12 return exec.Command("xdg-open", url).Start()
13 case "windows":
14 return exec.Command("rundll32", "url.dll,FileProtocolHandler", url).Start()
15 case "darwin":
16 return exec.Command("open", url).Start()
17 default:
18 return fmt.Errorf("unsupported platform")
19 }
20}

Callers 9

PollServerMethod · 0.92
LoginFunction · 0.92
ConnectGithubFlowFunction · 0.92
createGithubRepoFlowFunction · 0.92
githubFlowFunction · 0.92
DeployWithUploadFlowFunction · 0.92
OpenCmdFunction · 0.92
OpenCmdFunction · 0.92
DocsCmdFunction · 0.92

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected