open-sauced / pizza-cli

A CLI for all things OpenSauced
MIT License
31 stars 9 forks source link

Feature: add telemetry to `pizza generate config` command flows #187

Closed jpmcb closed 5 days ago

jpmcb commented 5 days ago

Suggested solution

The pizza generate config command flows are missing telemetry. We'll want to add it to the command options (like elsewhere):

type Options struct {
    // the path to the git repository on disk to generate a codeowners file for
    path string

    // where the '.sauced.yaml' file will go
    outputPath string

    // whether to use interactive mode
    isInteractive bool

    // from global config
    ttyDisabled bool

+   // telemetry for capturing CLI events via PostHog
+   telemetry *utils.PosthogCliClient
}

and then add capture events for this flow (captureConfigGen and capture ConfigGenFailure are probably enough)

open-sauced[bot] commented 2 days ago

:tada: This issue has been resolved in version 1.5.0-beta.3 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

open-sauced[bot] commented 2 days ago

:tada: This issue has been resolved in version 1.5.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: