Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
acarranoqovery committed Feb 26, 2025
1 parent 00a796e commit 3630c0d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ func Execute() {
func init() {
cobra.OnInitialize(initConfig)
rootCmd.PersistentFlags().BoolVar(&variable.Verbose, "verbose", false, "Verbose output")
rootCmd.PersistentFlags().BoolVar(&variable.NoTrack, "notrack", false, "Do not track the command execution in Qovery telemetry")
}

func initConfig() {
Expand Down
4 changes: 2 additions & 2 deletions utils/posthog.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package utils

import (
"os"
"runtime"
"strings"
"time"

"github.com/posthog/posthog-go"
"github.com/qovery/qovery-cli/variable"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
)
Expand All @@ -18,7 +18,7 @@ const EndOfExecutionErrorEventName = "cli-command-execution-error"
func Capture(command *cobra.Command) {

// Do not track the command execution in Qovery telemetry
if flag := command.Flags().Lookup(variable.NoTrackFlag); flag != nil {
if flag := os.Getenv("QOVERY_TELEMETRY"); flag == "false" || flag == "FALSE" {
return
}

Expand Down
4 changes: 0 additions & 4 deletions variable/notrack.go

This file was deleted.

0 comments on commit 3630c0d

Please sign in to comment.