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 2017/12/19 16:29:34 UTC

[GitHub] jthomas opened a new issue #179: Make it easier for user to save action code?

jthomas opened a new issue #179: Make it easier for user to save action code?
URL: https://github.com/apache/incubator-openwhisk-cli/issues/179
 
 
   When using serverless frameworks or CI/CD pipelines to create openwhisk applications, developers are not in charge of packaging their applications for deployment. In the event of an application error, I've found myself needing to download the deployed action code to a local file for debugging.
   
   **What about adding a flag to the CLI to make it easier for developers to save the action code to a file?** 
   
   `$ wsk action get name --code` would dump the raw value of `exec.code` to the console. Developers can redirect this to a file or base64 decoder to decode the binary.
   
   At the moment I have to string together `jq` and `tail` to achieve this, which is a bit of a pain and doesn't work on non-nix platforms.
   
   ```
   $ wsk action get params  | tail -n +2 | jq -r '.exec.code'
   ```

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


With regards,
Apache Git Services