File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,11 +28,6 @@ func NewApp(params AppParams) (*cli.App, error) {
2828 EnableDebugLogsFlag ,
2929 },
3030 }
31- for _ , c := range params .Commands {
32- if ! IsFeatureEnabled (APIKeyFeatureFlag ) && c .Name == "apikey" {
33- continue
34- }
35- app .Commands = append (app .Commands , c )
36- }
31+ app .Commands = params .Commands
3732 return app , nil
3833}
Original file line number Diff line number Diff line change @@ -11,12 +11,11 @@ import (
1111)
1212
1313var (
14- APIKeyFeatureFlag = "enable-apikey"
1514 GCPSinkFeatureFlag = "enable-gcp-sink"
1615 featureflagFileName = "feature.json"
1716)
1817
19- var supportFeatureFlags = []string {APIKeyFeatureFlag , GCPSinkFeatureFlag }
18+ var supportFeatureFlags = []string {GCPSinkFeatureFlag }
2019
2120type FeatureFlag struct {
2221 Name string `json:"Name"`
@@ -119,14 +118,6 @@ func NewFeatureCommand() (CommandOut, error) {
119118 Usage : "feature commands" ,
120119 Hidden : true ,
121120 Subcommands : []* cli.Command {
122- {
123- Name : "toggle-apikey" ,
124- Aliases : []string {"tak" },
125- Usage : "switch api keys on/off" ,
126- Action : func (c * cli.Context ) error {
127- return toggleFeature (APIKeyFeatureFlag )
128- },
129- },
130121 {
131122 Name : "toggle-gcp-sink" ,
132123 Aliases : []string {"tgs" },
You can’t perform that action at this time.
0 commit comments