Skip to content

Commit

Permalink
[CLOUDGA-23292] : Add cluster-name flag to commands to show up in help (
Browse files Browse the repository at this point in the history
#249)

Co-authored-by: Aditya Kaushik <[email protected]>
  • Loading branch information
adityakaushik99-yb and Aditya Kaushik authored Sep 5, 2024
1 parent 9763611 commit 2c1dab3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/cluster/connection-pooling/connection_pooling.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ func performConnectionPoolingOperation(operationName string, cmd *cobra.Command,

func init() {
util.AddCommandIfFeatureFlag(ConnectionPoolingCmd, enableConnectionPoolingCmd, util.CONNECTION_POOLING)
enableConnectionPoolingCmd.Flags().String("cluster-name", "", "[REQUIRED] The name of the cluster to get details.")
enableConnectionPoolingCmd.MarkFlagRequired("cluster-name")

util.AddCommandIfFeatureFlag(ConnectionPoolingCmd, disableConnectionPoolingCmd, util.CONNECTION_POOLING)
disableConnectionPoolingCmd.Flags().String("cluster-name", "", "[REQUIRED] The name of the cluster to get details.")
disableConnectionPoolingCmd.MarkFlagRequired("cluster-name")
}

0 comments on commit 2c1dab3

Please sign in to comment.