diff --git a/app/app.go b/app/app.go index f6d3930..72fb504 100644 --- a/app/app.go +++ b/app/app.go @@ -32,13 +32,7 @@ func NewApp(params AppParams) (*cli.App, error) { var commands []*cli.Command for _, command := range params.Commands { - if command.Name == "nexus" { - if IsFeatureEnabled(NexusFeatureFlag) { - commands = append(commands, command) - } - } else { - commands = append(commands, command) - } + commands = append(commands, command) } app.Commands = commands diff --git a/app/feature.go b/app/feature.go index ef9db87..db3e179 100644 --- a/app/feature.go +++ b/app/feature.go @@ -12,11 +12,10 @@ import ( var ( GCPSinkFeatureFlag = "enable-gcp-sink" - NexusFeatureFlag = "enable-nexus" featureflagFileName = "feature.json" ) -var supportFeatureFlags = []string{GCPSinkFeatureFlag, NexusFeatureFlag} +var supportFeatureFlags = []string{GCPSinkFeatureFlag} type FeatureFlag struct { Name string `json:"Name"` @@ -133,14 +132,6 @@ func NewFeatureCommand() (CommandOut, error) { return toggleFeature(GCPSinkFeatureFlag) }, }, - { - Name: "toggle-nexus", - Aliases: []string{"tnxs"}, - Usage: "switch nexus on/off", - Action: func(c *cli.Context) error { - return toggleFeature(NexusFeatureFlag) - }, - }, { Name: "get", Aliases: []string{"g"},