Skip to content

Commit f956540

Browse files
authored
Revert "Add 'features' command to print available feature gates" (#6771)
This reverts commit 5caf4e4. ## Which problem is this PR solving? - Since upstream PR open-telemetry/opentelemetry-collector#12014 was merged, we don't need our own command anymore ## Description of the changes - Revert previous PR ## How was this change tested? ``` $ go run ./cmd/jaeger featuregate ``` Signed-off-by: Yuri Shkuro <[email protected]>
1 parent 84212d2 commit f956540

File tree

3 files changed

+0
-88
lines changed

3 files changed

+0
-88
lines changed

cmd/jaeger/internal/features/display.go

Lines changed: 0 additions & 32 deletions
This file was deleted.

cmd/jaeger/internal/features/display_test.go

Lines changed: 0 additions & 41 deletions
This file was deleted.

cmd/jaeger/main.go

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,12 @@
44
package main
55

66
import (
7-
"fmt"
87
"log"
98

10-
"github.com/spf13/cobra"
119
"github.com/spf13/viper"
1210

1311
"github.com/jaegertracing/jaeger/cmd/internal/docs"
1412
"github.com/jaegertracing/jaeger/cmd/jaeger/internal"
15-
"github.com/jaegertracing/jaeger/cmd/jaeger/internal/features"
1613
"github.com/jaegertracing/jaeger/internal/storage/v1/elasticsearch/mappings"
1714
"github.com/jaegertracing/jaeger/pkg/config"
1815
"github.com/jaegertracing/jaeger/pkg/version"
@@ -23,7 +20,6 @@ func main() {
2320
command := internal.Command()
2421
command.AddCommand(version.Command())
2522
command.AddCommand(docs.Command(v))
26-
command.AddCommand(featuresCommand())
2723
command.AddCommand(mappings.Command())
2824
config.AddFlags(
2925
v,
@@ -34,14 +30,3 @@ func main() {
3430
log.Fatal(err)
3531
}
3632
}
37-
38-
func featuresCommand() *cobra.Command {
39-
return &cobra.Command{
40-
Use: "features",
41-
Short: "Displays the list of supported features",
42-
Long: "The 'features' command shows all supported features in the current build of Jaeger.",
43-
Run: func(_ *cobra.Command, _ []string) {
44-
fmt.Print(features.DisplayFeatures())
45-
},
46-
}
47-
}

0 commit comments

Comments
 (0)