[DEPRECATED] - Visual Studio Code extension (prototype) for authoring OpenWhisk actions inside the editor.

Clone this repo:
  1. d44b31c bug fixes, updated templates, php support (#25) by Andrew Trice · 2 years, 11 months ago master
  2. 325dc88 Add ASF License headers to all source files. Fix other scan errors. (#23) by Matt Rutkowski · 3 years, 3 months ago
  3. 998867c Delete License by Matt Rutkowski · 3 years, 8 months ago
  4. ac4d73f Create LICENSE.txt by Matt Rutkowski · 3 years, 8 months ago
  5. 9d70fbf Update CONTRIBUTING.md by Matt Rutkowski · 3 years, 8 months ago

VSCode OpenWhisk Extension

This is a prototype extension for Visual Studio Code https://code.visualstudio.com/ that enables complete round trip cycles for authoring OpenWhisk actions inside the editor. The key point for this extension is that it has full round trip for open whisk actions (list, create new local, create new remote, update, import from remote system, invoke, etc…) without ever leaving the IDE and makes dev cycles far shorter and easier. It also works for both Swift and JS actions on Windows, Mac, and Linux.

Download and run the installer for your platform from the Downloads Section.

Build Status License

Preview of VS Code OpenWhisk extension here:

VS Code OpenWhisk extension video

https://youtu.be/aPsLXvphkro

Downloads

Latest stable: Download the packaged extension from the releases page.

To install download the extension and drag it into VSCode

Usage

OpenWhisk command can be invoked from the Command Palette using the prefix wsk. You can invoke the Command Palette by pressing F1 or by using the key combination CMD Shift P (OS X, there is an equivalent for Windows/Linux).

Command Palette Screenshot

Configuration

Once you have the extension installed, you will have to run wsk property set inside of VS Code to set the auth and namespace values. These values can be retrieved from either the OpenWhisk CLI using wsk property get or from the web interface.

Util Commands

wsk commands:

 bluemix             launch OpenWhisk console on Bluemix
 docs                open OpenWhisk docs
 property set        set property
 property unset      unset property
 property get        get property
 action              see available commands for OpenWhisk actions

wsk action commands:

 init                create new action boilerplate file
 create              create new action
 sequence            create a new sequence of actions
 update              update an existing action
 invoke              invoke action
 get                 get action
 delete              delete action
 list                list all actions
 rest                display CURL rest invocation parameters