github.com/orteth01/up@v0.2.0/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  	"github.com/apex/up/internal/stats"
     9  )
    10  
    11  // URL for documentation.
    12  var url = `https://github.com/apex/up/tree/master/docs`
    13  
    14  func init() {
    15  	cmd := root.Command("docs", "Show docs in the browser.")
    16  	cmd.Action(func(_ *kingpin.ParseContext) error {
    17  		stats.Track("Open Docs", nil)
    18  		return browser.OpenURL(url)
    19  	})
    20  }