A container registry that uses the AT Protocol for manifest storage and S3 for blob storage.
atcr.io
docker
container
atproto
go
1package oauth
2
3import (
4 "fmt"
5 "os/exec"
6 "runtime"
7)
8
9// OpenBrowser opens the default browser to the given URL
10func OpenBrowser(url string) error {
11 var cmd *exec.Cmd
12
13 switch runtime.GOOS {
14 case "darwin":
15 cmd = exec.Command("open", url)
16 case "linux":
17 cmd = exec.Command("xdg-open", url)
18 case "windows":
19 cmd = exec.Command("rundll32", "url.dll,FileProtocolHandler", url)
20 default:
21 return fmt.Errorf("unsupported platform: %s", runtime.GOOS)
22 }
23
24 return cmd.Start()
25}