You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by gi...@git.apache.org on 2017/06/09 12:16:03 UTC

[GitHub] bpoole16 commented on a change in pull request #2334: Added --last Activation Flag

bpoole16 commented on a change in pull request #2334: Added --last Activation Flag 
URL: https://github.com/apache/incubator-openwhisk/pull/2334#discussion_r121106935
 
 

 ##########
 File path: tools/cli/go-whisk-cli/commands/activation.go
 ##########
 @@ -224,6 +235,35 @@ var activationResultCmd = &cobra.Command{
         return nil
     },
 }
+//lastFlag(args) retrieves the last activation with flag -l or --last
+//Param: Brings in []strings from args
+//Return: Returns an args([]string) with last ID used or the original args with any errors
+func lastFlag(args []string) ([]string, error) {
+  //Checks to see if there is no ID sent with the last flag
+  //If an ID is given with the last flag then the ID will overide the flag
+  if flags.activation.last && len(args) == 0  {
 
 Review comment:
   Activation ID will be used if both an ID and --last are given.
 
----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services