You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2022/07/04 00:26:11 UTC

[GitHub] [openwhisk] ningyougang commented on pull request #5244: [Proposal] POEM: provide array result for all runtime images

ningyougang commented on PR #5244:
URL: https://github.com/apache/openwhisk/pull/5244#issuecomment-1173207585

   Hi,guys.
      Regarding `prvoide array result`, for common action or sequence action, i have implemented in my local, e.g. for this example: https://github.com/apache/openwhisk/blob/master/docs/actions.md#creating-action-sequences
   
   I updated the split.js and sort.js like below and invoked successully using my local openwhisk codes
   ```split.js
   function main(msg) {
      var separator = msg.separator || /\r?\n/;
      var payload = msg.payload.toString();
      var lines = payload.split(separator);
      return lines;
   }
   ```
   And
   ```sort.js
   function main(msg) {
      var lines = msg || [];
      console.log('sort before: ' + lines);
      lines.sort();
      return lines;
   }
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org