Skip to content

Commit

Permalink
SCP-1904 create UDF EA-specific LD flag for Flink Artifact CLI (#2621)
Browse files Browse the repository at this point in the history
  • Loading branch information
byang-confluent authored Feb 15, 2024
1 parent 073e285 commit 636412a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/flink/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (

pcmd "github.com/confluentinc/cli/v3/pkg/cmd"
"github.com/confluentinc/cli/v3/pkg/config"
"github.com/confluentinc/cli/v3/pkg/featureflags"
)

type command struct {
Expand All @@ -22,7 +23,9 @@ func New(cfg *config.Config, prerunner pcmd.PreRunner) *cobra.Command {

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

cmd.AddCommand(c.newArtifactCommand())
if cfg.IsTest || featureflags.Manager.BoolVariation("cli.flink_artifact.early_access", cfg.Context(), config.CliLaunchDarklyClient, true, false) {
cmd.AddCommand(c.newArtifactCommand())
}
cmd.AddCommand(c.newComputePoolCommand())
cmd.AddCommand(c.newRegionCommand())
cmd.AddCommand(c.newShellCommand(prerunner))
Expand Down

0 comments on commit 636412a

Please sign in to comment.