diff --git a/completers/go_completer/cmd/telemetry.go b/completers/go_completer/cmd/telemetry.go new file mode 100644 index 0000000000..c032af7e5c --- /dev/null +++ b/completers/go_completer/cmd/telemetry.go @@ -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), + ) +}