MCPcopy Create free account
hub / github.com/cli/cli / telemetryFlags

Function telemetryFlags

pkg/cmdutil/telemetry.go:47–54  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

45}
46
47func telemetryFlags(cmd *cobra.Command) string {
48 var flags []string
49 cmd.Flags().Visit(func(f *pflag.Flag) {
50 flags = append(flags, f.Name)
51 })
52 slices.Sort(flags)
53 return strings.Join(flags, ",")
54}
55
56// RecordTelemetryForSubcommands instruments all descendants of a command.
57func RecordTelemetryForSubcommands(cmd *cobra.Command, telemetry ghtelemetry.EventRecorder) {

Callers 1

RecordTelemetryFunction · 0.85

Calls 1

JoinMethod · 0.80

Tested by

no test coverage detected