adobe / aio-cli

Adobe I/O Extensible CLI
https://www.adobe.io
Apache License 2.0
78 stars 33 forks source link

Lost support for 'code' #379

Closed purplecabbage closed 1 year ago

purplecabbage commented 1 year ago

Expected Behaviour

Developers should be able to define code directly in their manifest file:

code: |
  function main(params) {
    return {payload:  'Hello, ' + params.name + ' from ' + params.place};
  }
etc ...

Actual Behaviour

aio app run » Error: The "path" argument must be of type string. Received undefined

Code is looking for a function: that points to a file

More details on wskdeploy supported entities: https://github.com/apache/openwhisk-wskdeploy/blob/master/docs/wskdeploy_inputs.md

shazron commented 1 year ago

Actually, code has been replaced by function: https://github.com/apache/openwhisk-wskdeploy/blob/master/specification/html/spec_actions.md#actions

aiojbot commented 1 year ago

JIRA issue created: https://jira.corp.adobe.com/browse/ACNA-1933

purplecabbage commented 1 year ago

Closing, thanks!