This perhaps may be the way to go... (implicit source/destination treating each
include line as a series of arguments/parameters into an "include" function):
```
# issues:
# copy file to path ending in '/' (or not ending in '/') == NO, MUST have
trailing '/'
# do we allow rename? or allow only target/dest ONLY to be a Path (not a new
filename) == NO, edge case, too complex
# Warning on changing .js to .py? user resp. for making sure this does not
happen == MAYBE, future implementation
# wildcards allowed = YES
# support recursive copy? or only directory by directory (future functionality,
new parameter?) = YES
packages:
myPackage:
actions:
action1:
function: actions/action1
runtime: nodejs:6
include:
# parm 1 is relative to where the manifest.yaml file is located
# parm 2 is relative to the action directory (i.e., "actions/action1" in this
case)
- ["actions/common/utility1.js", "./common/"]
- ["actions/common/utility1.js", "./common/"]
- ["actions/common/*.js", "./common/"]
# 3rd parm is recurse using pattern from par, #1
- ["actions/common/*.js", "./common/", TRUE | FALSE ]
```
[ Full content available at:
https://github.com/apache/incubator-openwhisk-wskdeploy/issues/969 ]
This message was relayed via gitbox.apache.org for [email protected]