A container registry that uses the AT Protocol for manifest storage and S3 for blob storage. atcr.io
docker container atproto go
73
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 97d1b3cdd50e4727e5db3c498f4e8bb73851fd39 25 lines 481 B view raw
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}