From 2c1dab30a5bc8a3db2f8b4de055ae1a742b64462 Mon Sep 17 00:00:00 2001 From: Aditya Kaushik <30402498+adityakaushik99-yb@users.noreply.github.com> Date: Thu, 5 Sep 2024 14:37:32 +0530 Subject: [PATCH] [CLOUDGA-23292] : Add cluster-name flag to commands to show up in help (#249) Co-authored-by: Aditya Kaushik --- cmd/cluster/connection-pooling/connection_pooling.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/cluster/connection-pooling/connection_pooling.go b/cmd/cluster/connection-pooling/connection_pooling.go index 15cf272..645a6bc 100644 --- a/cmd/cluster/connection-pooling/connection_pooling.go +++ b/cmd/cluster/connection-pooling/connection_pooling.go @@ -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") } \ No newline at end of file