Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupRootCommand ¶
SetupRootCommand is a convinence utility for applying templates and nice user experience pieces to the root cobra command
Types ¶
type PosthogCliClient ¶ added in v1.0.0
type PosthogCliClient struct {
// contains filtered or unexported fields
}
PosthogCliClient is a wrapper around the posthog-go client and is used as a API entrypoint for sending OpenSauced telemetry data for CLI commands
func NewPosthogCliClient ¶ added in v1.0.0
func NewPosthogCliClient() *PosthogCliClient
NewPosthogCliClient returns a PosthogCliClient which can be used to capture telemetry events for CLI users
func (*PosthogCliClient) CaptureBake ¶ added in v1.0.0
func (p *PosthogCliClient) CaptureBake(urls []string)
CaptureBake gathers telemetry on git repos that are being baked
func (*PosthogCliClient) CaptureFailedLogin ¶ added in v1.0.0
func (p *PosthogCliClient) CaptureFailedLogin()
CaptureFailedLogin gathers telemetry on failed logins via the CLI
func (*PosthogCliClient) CaptureLogin ¶ added in v1.0.0
func (p *PosthogCliClient) CaptureLogin(username string)
CaptureLogin gathers telemetry on users who log into OpenSauced via the CLI
func (*PosthogCliClient) CaptureRepoQuery ¶ added in v1.0.0
func (p *PosthogCliClient) CaptureRepoQuery(url string)
CaptureRepoQuery gathers telemetry on users using the repo-query service
func (*PosthogCliClient) Done ¶ added in v1.0.0
func (p *PosthogCliClient) Done()
Done should always be called in order to flush the Posthog buffers before the CLI exits to ensure all events are accurately captured.