CITY and COUNTRY could be environment variables defined in .env file.
CITY=NYC
COUNTRY=USA
Describe alternatives you've considered
The user could use the CLI to manually set up default params, but it is not as neat as defining them in manifest.
Additional context
This is extremely useful for the cases when developers need to share variables across multiple actions.
The text was updated successfully, but these errors were encountered:
After chatting with @duynguyen , this is mostly for mapping secrets and K/Vs defined within .env and .aio at package level (instead of having to repeat the mapping across several actions).
Current workaround: repeat the mapping for all the actions, which need to use the variable, or use:
aio rt package create sample-app-0.0.1 --param city NYC --param country USA
duynguyen commentedOct 15, 2020
•
edited
Is your feature request related to a problem? Please describe.
With the
aio runtimeCLI plugin, you can set default params for package, e.g.However it doesn’t seem possible in
wskdeploy: https://github.com/apache/openwhisk-wskdeploy/blob/master/specification/html/spec_packages.md#packagesBecause the manifest spec of Firefly follows
wskdeployconvention, it doesn't support this use case as wellDescribe the solution you'd like
It should be possible to set default params for packages. Example snippet below.
CITYandCOUNTRYcould be environment variables defined in .env file.Describe alternatives you've considered
The user could use the CLI to manually set up default params, but it is not as neat as defining them in manifest.
Additional context
This is extremely useful for the cases when developers need to share variables across multiple actions.
The text was updated successfully, but these errors were encountered: