@@ -39,20 +39,20 @@ func newAddCMD(kymaConfig *cmdcommon.KymaConfig) *cobra.Command {
3939 Short : "Add a module" ,
4040 Long : "Use this command to add a module." ,
4141 Example : ` # Add the Keda module with the default CR
42- kyma module add keda --default-cr
42+ kyma module add keda --default-config- cr
4343
4444 # Add the Keda module with a custom CR from a file
45- kyma module add keda --cr-path ./keda-cr.yaml
45+ kyma module add keda --config- cr-path ./keda-cr.yaml
4646
4747 ## Add a community module with a default CR and auto-approve the SLA
4848 # passed argument must be in the format <namespace>/<module-template-name>
4949 # the module must be pulled from the catalog first using the 'kyma module pull' command
50- kyma module add my-namespace/my-module-template-name --default-cr --auto-approve` ,
50+ kyma module add my-namespace/my-module-template-name --default-config- cr --auto-approve` ,
5151
5252 Args : cobra .ExactArgs (1 ),
5353 PreRun : func (cmd * cobra.Command , _ []string ) {
5454 clierror .Check (flags .Validate (cmd .Flags (),
55- flags .MarkMutuallyExclusive ("cr-path" , "default-cr" ),
55+ flags .MarkMutuallyExclusive ("cr-path" , "default-cr" , "config-cr-path" , "default-config-cr" ),
5656 flags .MarkUnsupported ("community" , "the --community flag is no longer supported - community modules need to be pulled first using 'kyma module pull' command, then installed" ),
5757 flags .MarkUnsupported ("origin" , "the --origin flag is no longer supported - use commands argument instead" ),
5858 ))
@@ -65,7 +65,11 @@ func newAddCMD(kymaConfig *cmdcommon.KymaConfig) *cobra.Command {
6565
6666 cmd .Flags ().StringVarP (& cfg .channel , "channel" , "c" , "" , "Name of the Kyma channel to use for the module" )
6767 cmd .Flags ().StringVar (& cfg .crPath , "cr-path" , "" , "Path to the custom resource file" )
68+ _ = cmd .Flags ().MarkHidden ("cr-path" )
69+ cmd .Flags ().StringVar (& cfg .crPath , "config-cr-path" , "" , "Path to the custom resource file (alias: --cr-path)" )
6870 cmd .Flags ().BoolVar (& cfg .defaultCR , "default-cr" , false , "Deploys the module with the default CR" )
71+ _ = cmd .Flags ().MarkHidden ("default-cr" )
72+ cmd .Flags ().BoolVar (& cfg .defaultCR , "default-config-cr" , false , "Deploys the module with the default CR (alias: --default-cr)" )
6973 cmd .Flags ().BoolVar (& cfg .autoApprove , "auto-approve" , false , "Automatically approve community module installation" )
7074 cmd .Flags ().StringVar (& cfg .version , "version" , "" , "Specifies version of the community module to install" )
7175 cmd .Flags ().StringVar (& cfg .modulePath , "origin" , "" , "Specifies the source of the module (kyma or custom name)" )
0 commit comments