github.com/hhsnopek/up@v0.1.1/internal/cli/docs/docs.go (about) 1 package docs 2 3 import ( 4 "github.com/pkg/browser" 5 "github.com/tj/kingpin" 6 7 "github.com/apex/up/internal/cli/root" 8 ) 9 10 // URL for documentation. 11 var url = `https://github.com/apex/up/tree/master/docs` 12 13 func init() { 14 cmd := root.Command("docs", "Show docs in the browser.") 15 cmd.Action(func(_ *kingpin.ParseContext) error { 16 return browser.OpenURL(url) 17 }) 18 }