Skip to content

Commit

Permalink
fix: add more install telemetry (#5528)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicufk authored Jun 10, 2024
1 parent 2f2d4a1 commit 8f5a629
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cmd/kubectl-testkube/commands/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,21 +213,22 @@ func NewInitCmdDemo() *cobra.Command {
ui.Info("Make sure to copy these credentials now as you will not be able to see this again.")
ui.NL()
ok := ui.Confirm("Do you want to continue?")
if !ok {
return
}

sendTelemetry(cmd, cfg, license, "user confirmed proceeding")

ui.Info("You can use `testkube dashboard` to access Testkube without exposing services.")
ui.NL()

if !ok {
return
}

if ok := ui.Confirm("Do you want to open the dashboard?"); ok {
sendTelemetry(cmd, cfg, license, "opening dashboard")
cfg, err := config.Load()
ui.ExitOnError("Cannot open dashboard", err)
openOnPremDashboard(cmd, cfg, false, license)
} else {
sendTelemetry(cmd, cfg, license, "skipping dashboard")
}
},
}
Expand Down

0 comments on commit 8f5a629

Please sign in to comment.