dubeejw commented on a change in pull request #2334: (Review) Added --last
Activation Flag
URL:
https://github.com/apache/incubator-openwhisk/pull/2334#discussion_r124825817
##########
File path: tools/cli/go-whisk-cli/commands/activation.go
##########
@@ -161,13 +169,21 @@ var activationGetCmd = &cobra.Command{
}
var activationLogsCmd = &cobra.Command{
- Use: "logs ACTIVATION_ID",
+ Use: "logs (ACTIVATION_ID | --last)",
Short: wski18n.T("get the logs of an activation"),
SilenceUsage: true,
SilenceErrors: true,
PreRunE: setupClientConfig,
RunE: func(cmd *cobra.Command, args []string) error {
+ var err error
+ if args, err = lastFlag(args); err != nil { // Checks if any errors
occured in lastFlag(args)
+ whisk.Debug(whisk.DbgError, "client.Activation.Logs failed: %s\n",
err)
Review comment:
Same as comment above.
----------------------------------------------------------------
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