Documentation ¶
Index ¶
- Variables
- func GetMaxTableRowWidth(rows []bubblesTable.Row) int
- func GetOwnerAndRepoFromURL(input string) (owner, repo string, err error)
- func HandleRepositoryValues(repos []string, filePath string) (map[string]struct{}, error)
- func OutputJSON(entity interface{}) (string, error)
- func OutputTable(rows []bubblesTable.Row, columns []bubblesTable.Column) string
- func OutputYAML(entity interface{}) (string, error)
- func SetupRootCommand(rootCmd *cobra.Command)
- type PosthogCliClient
Constants ¶
This section is empty.
Variables ¶
var ( Version = "dev" Sha = "HEAD" )
Functions ¶
func GetMaxTableRowWidth ¶
func GetMaxTableRowWidth(rows []bubblesTable.Row) int
func GetOwnerAndRepoFromURL ¶
GetOwnerAndRepoFromURL: extracts the owner and repository name
func HandleRepositoryValues ¶
func OutputJSON ¶
func OutputTable ¶
func OutputTable(rows []bubblesTable.Row, columns []bubblesTable.Column) string
func OutputYAML ¶
func SetupRootCommand ¶
SetupRootCommand is a convenience utility for applying templates and nice user experience pieces to the root cobra command
Types ¶
type PosthogCliClient ¶
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 ¶
func NewPosthogCliClient() *PosthogCliClient
NewPosthogCliClient returns a PosthogCliClient which can be used to capture telemetry events for CLI users
func (*PosthogCliClient) CaptureBake ¶
func (p *PosthogCliClient) CaptureBake(urls []string)
CaptureBake gathers telemetry on git repos that are being baked
func (*PosthogCliClient) CaptureFailedLogin ¶
func (p *PosthogCliClient) CaptureFailedLogin()
CaptureFailedLogin gathers telemetry on failed logins via the CLI
func (*PosthogCliClient) CaptureLogin ¶
func (p *PosthogCliClient) CaptureLogin(username string)
CaptureLogin gathers telemetry on users who log into OpenSauced via the CLI
func (*PosthogCliClient) CaptureRepoQuery ¶
func (p *PosthogCliClient) CaptureRepoQuery(url string)
CaptureRepoQuery gathers telemetry on users using the repo-query service
func (*PosthogCliClient) Done ¶
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.