File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,20 +27,8 @@ func NewApp(params AppParams) (*cli.App, error) {
2727 InsecureConnectionFlag ,
2828 EnableDebugLogsFlag ,
2929 },
30+ Commands : params .Commands ,
3031 }
3132
32- var commands []* cli.Command
33-
34- for _ , command := range params .Commands {
35- if command .Name == "nexus" {
36- if IsFeatureEnabled (NexusFeatureFlag ) {
37- commands = append (commands , command )
38- }
39- } else {
40- commands = append (commands , command )
41- }
42- }
43- app .Commands = commands
44-
4533 return app , nil
4634}
Original file line number Diff line number Diff line change @@ -12,11 +12,10 @@ import (
1212
1313var (
1414 GCPSinkFeatureFlag = "enable-gcp-sink"
15- NexusFeatureFlag = "enable-nexus"
1615 featureflagFileName = "feature.json"
1716)
1817
19- var supportFeatureFlags = []string {GCPSinkFeatureFlag , NexusFeatureFlag }
18+ var supportFeatureFlags = []string {GCPSinkFeatureFlag }
2019
2120type FeatureFlag struct {
2221 Name string `json:"Name"`
@@ -133,14 +132,6 @@ func NewFeatureCommand() (CommandOut, error) {
133132 return toggleFeature (GCPSinkFeatureFlag )
134133 },
135134 },
136- {
137- Name : "toggle-nexus" ,
138- Aliases : []string {"tnxs" },
139- Usage : "switch nexus on/off" ,
140- Action : func (c * cli.Context ) error {
141- return toggleFeature (NexusFeatureFlag )
142- },
143- },
144135 {
145136 Name : "get" ,
146137 Aliases : []string {"g" },
You can’t perform that action at this time.
0 commit comments