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/26 07:48:55 UTC
[GitHub] [openwhisk-runtime-swift] ningyougang commented on pull request #150: Support array result include sequence action
ningyougang commented on PR #150:
URL: https://github.com/apache/openwhisk-runtime-swift/pull/150#issuecomment-1195130228
The steps of test support array result for sequence action in swift(4.2, 5.1, 5.3)
* Write actions
```swift
[root@nccddev130026 ~]# cat ~/split.swift
func main(args: Any) -> Any {
// don't do real split operation, just return array for next action's input param
return ["e1", "e2"]
}
[root@nccddev130026 ~]# cat ~/sort.swift
func main(args: Any) -> Any {
// don't do real sort operation, just return the array direclty
return args
}
```
* Create actions and invoke it
```shell
wsk -i action create /whisk.system/utils/split-swift --kind swift:5.3 ~/split.swift
wsk -i action create /whisk.system/utils/sort-swift --kind swift:5.3 ~/sort.swift
wsk -i action create mySequence-swift --sequence /whisk.system/utils/split-swift,/whisk.system/utils/sort-swift
wsk -i action invoke --result mySequence-swift -r -v
```
--
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