Very Cool Update for the OpenWhisk CLI

I was a bit behind on updating my WSK cli (see details on how to do that here) and was incredibly happy to see an important update. It may not be critical for everyone, but it was certainly important to me.

First, you can browse commits to the CLI repo here - https://github.com/apache/incubator-openwhisk/commits/master/tools/cli - and I recommend checking it out as there are a few other things interesting there as well.

The change I'm most interested in is pull 2326 - support for name sorting. Why is this a big deal? The default sort for wsk action list is by the last time the action was updated. To me, this is a bad default. Well, not bad, but not one I'd use by default. Instead, I'm often trying to find the name of an action. I'll know what the name is in general, but perhaps not precisely.

Did I call it randomComicBook or randomComic? Did I call it getTweets or getLatestTweets? By supporting the ability to sort by name, this becomes a lot easier for me now.

Compre this:

Confusing

With this (using wsk action list --name-sort):

Not confusing

This is nice enough that I'm going to make an alias like wska or some such so I can get to it quicker.

Like This?

If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can also subscribe to the email feed to get notified of new posts.

Want to read more like this?