Skip to content

Commit

Permalink
Revert "Add 'features' command to print available feature gates" (#6771)
Browse files Browse the repository at this point in the history
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 <github@ysh.us>
  • Loading branch information
yurishkuro authored Feb 23, 2025
1 parent 84212d2 commit f956540
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 88 deletions.
32 changes: 0 additions & 32 deletions cmd/jaeger/internal/features/display.go

This file was deleted.

41 changes: 0 additions & 41 deletions cmd/jaeger/internal/features/display_test.go

This file was deleted.

15 changes: 0 additions & 15 deletions cmd/jaeger/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,12 @@
package main

import (
"fmt"
"log"

"github.com/spf13/cobra"
"github.com/spf13/viper"

"github.com/jaegertracing/jaeger/cmd/internal/docs"
"github.com/jaegertracing/jaeger/cmd/jaeger/internal"
"github.com/jaegertracing/jaeger/cmd/jaeger/internal/features"
"github.com/jaegertracing/jaeger/internal/storage/v1/elasticsearch/mappings"
"github.com/jaegertracing/jaeger/pkg/config"
"github.com/jaegertracing/jaeger/pkg/version"
Expand All @@ -23,7 +20,6 @@ func main() {
command := internal.Command()
command.AddCommand(version.Command())
command.AddCommand(docs.Command(v))
command.AddCommand(featuresCommand())
command.AddCommand(mappings.Command())
config.AddFlags(
v,
Expand All @@ -34,14 +30,3 @@ func main() {
log.Fatal(err)
}
}

func featuresCommand() *cobra.Command {
return &cobra.Command{
Use: "features",
Short: "Displays the list of supported features",
Long: "The 'features' command shows all supported features in the current build of Jaeger.",
Run: func(_ *cobra.Command, _ []string) {
fmt.Print(features.DisplayFeatures())
},
}
}

0 comments on commit f956540

Please sign in to comment.