mirror of
https://github.com/rsteube/carapace-bin.git
synced 2025-05-05 15:32:53 +00:00
go: added telemetry
This commit is contained in:
parent
a8389f05f3
commit
3412fe7fd3
23
completers/go_completer/cmd/telemetry.go
Normal file
23
completers/go_completer/cmd/telemetry.go
Normal 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),
|
||||
)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user