// AppOpen opens an app in the default webbrowser. func AppOpen(appID string) error { c, appID, err := load(appID) if err != nil { return err } app, err := apps.Get(c, appID) if err != nil { return err } u := app.URL if !(strings.HasPrefix(u, "http://") || strings.HasPrefix(u, "https://")) { u = "http://" + u } return webbrowser.Webbrowser(u) }
// AppOpen opens an app in the default webbrowser. func AppOpen(appID string) error { c, appID, err := load(appID) if err != nil { return err } app, err := apps.Get(c, appID) if err != nil { return err } u, err := url.Parse(app.URL) if err != nil { return err } u.Scheme = "http" return webbrowser.Webbrowser(u.String()) }