go: added telemetry

This commit is contained in:
rsteube 2024-10-31 14:21:03 +01:00
parent a8389f05f3
commit 3412fe7fd3

View File

@ -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),
)
}