dubeejw commented on a change in pull request #2675: Added changes for classes 
and variables casing to be get exported and can be used in other places
URL: 
https://github.com/apache/incubator-openwhisk/pull/2675#discussion_r140059995
 
 

 ##########
 File path: tools/cli/go-whisk-cli/commands/rule.go
 ##########
 @@ -39,23 +39,23 @@ var ruleEnableCmd = &cobra.Command{
     Short: wski18n.T("enable rule"),
     SilenceUsage:   true,
     SilenceErrors:  true,
-    PreRunE: setupClientConfig,
+    PreRunE: SetupClientConfig,
     RunE: func(cmd *cobra.Command, args []string) error {
         var err error
         var qualifiedName = new(QualifiedName)
 
-        if whiskErr := checkArgs(args, 1, 1, "Rule enable", wski18n.T("A rule 
name is required.")); whiskErr != nil {
+        if whiskErr := CheckArgs(args, 1, 1, "Rule enable", wski18n.T("A rule 
name is required.")); whiskErr != nil {
             return whiskErr
         }
 
         if qualifiedName, err = NewQualifiedName(args[0]); err != nil {
             return NewQualifiedNameError(args[0], err)
         }
 
-        client.Namespace = qualifiedName.GetNamespace()
+        Client.Namespace = qualifiedName.GetNamespace()
         ruleName := qualifiedName.GetEntityName()
 
-        _, _, err = client.Rules.SetState(ruleName, "active")
+        _, _, err = Client.Rules.SetState(ruleName, "active")
 
 Review comment:
   Update debug message below.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to