Skip to content

Commit df7404f

Browse files
Add feature flag to Custom SMT feature for EA (#3112)
1 parent df67569 commit df7404f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

internal/connect/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func New(cfg *config.Config, prerunner pcmd.PreRunner) *cobra.Command {
2121
Short: "Manage Kafka Connect.",
2222
}
2323

24-
cmd.AddCommand(newArtifactCommand(prerunner))
24+
cmd.AddCommand(newArtifactCommand(cfg, prerunner))
2525
cmd.AddCommand(newClusterCommand(cfg, prerunner))
2626
cmd.AddCommand(newCustomPluginCommand(cfg, prerunner))
2727
cmd.AddCommand(newEventCommand(prerunner))

internal/connect/command_artifact.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import (
66
camv1 "github.com/confluentinc/ccloud-sdk-go-v2/cam/v1"
77

88
pcmd "github.com/confluentinc/cli/v4/pkg/cmd"
9+
"github.com/confluentinc/cli/v4/pkg/config"
10+
"github.com/confluentinc/cli/v4/pkg/featureflags"
911
"github.com/confluentinc/cli/v4/pkg/output"
1012
)
1113

@@ -22,11 +24,12 @@ type artifactOut struct {
2224
ContentFormat string `human:"Content Format" serialized:"content_format"`
2325
}
2426

25-
func newArtifactCommand(prerunner pcmd.PreRunner) *cobra.Command {
27+
func newArtifactCommand(cfg *config.Config, prerunner pcmd.PreRunner) *cobra.Command {
2628
cmd := &cobra.Command{
2729
Use: "artifact",
2830
Short: "Manage Connect artifacts.",
2931
Annotations: map[string]string{pcmd.RunRequirement: pcmd.RequireNonAPIKeyCloudLogin},
32+
Hidden: !(cfg.IsTest || featureflags.Manager.BoolVariation("connect.artifact.enabled", cfg.Context(), config.CliLaunchDarklyClient, true, false)),
3033
}
3134

3235
c := &artifactCommand{pcmd.NewAuthenticatedCLICommand(cmd, prerunner)}

0 commit comments

Comments
 (0)