Skip to content

Commit

Permalink
go: added telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Oct 31, 2024
1 parent a8389f0 commit 3412fe7
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions completers/go_completer/cmd/telemetry.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package cmd

import (
"github.com/carapace-sh/carapace"
"github.com/carapace-sh/carapace/pkg/style"
"github.com/spf13/cobra"
)

var telemetryCmd = &cobra.Command{
Use: "telemetry",
Short: "manage telemetry data and settings",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
carapace.Gen(telemetryCmd).Standalone()

rootCmd.AddCommand(telemetryCmd)

carapace.Gen(telemetryCmd).PositionalCompletion(
carapace.ActionValues("off", "local", "on").StyleF(style.ForKeyword),
)
}

0 comments on commit 3412fe7

Please sign in to comment.