pritidesai opened a new issue #922: scope --param to action level inputs
URL: https://github.com/apache/incubator-openwhisk-wskdeploy/issues/922
 
 
   With the introduction of `--param` on CLI, we can overwrite any input in the 
manifest/deployment file. We would like to introduce next level of granularity 
by introducing overwriting inputs at the action level. For example, when we 
have two actions with the same inputs, `--param` should somehow only overwrite 
input of one action and leave the other action as is.
   
   ```
   packages:
       helloworldapp:
           actions:
               hello1:
                   inputs:
                       name:
                           type: string
                           description: "your first name"
                           required: false
                           value: Amy
                       place:
                           type: string
                           description: "The city name"
                           required: false
                           value: Paris
                   code: |
                             function main(params) {
                                 return {payload:  'Hello, ' + params.name + ' 
from ' + params.place};
                             }
                   runtime: nodejs:6
               hello2:
                   inputs:
                       name:
                           type: string
                           description: "your first name"
                           required: false
                           value: Amy
                       place:
                           type: string
                           description: "The city name"
                           required: false
                           value: Paris
                   code: |
                             function main(params) {
                                 return {payload:  'Hello, ' + params.name + ' 
from ' + params.place};
                             }
                   runtime: nodejs:6
   ```
   
   Now, only overwrite `name` in action`hello1` using `--param` on CLI:
   
   ```
   wskdeploy -m manifest.yaml --param hello1:name Bob 
   ```
   
   thoughts @csantanapr 
   
   

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to