Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
@l2fprod commented on Mon Nov 14 2016
When called with no arguments,
wsk property getshows a table like output:Let's say I want to retrieve the namespace, I can use
wsk property get --namespace. This output:Now I have to parse this output to isolate the namespace. This leads to extra
awkcalls like we can see in several advanced OpenWhisk tutorials https://github.com/IBM-Bluemix/openwhisk-darkvisionapp/blob/master/processing/deploy-darkvision.sh, https://github.com/skaegi/openwhisk-package-pipeline/blob/master/deploy.shThis would go away if the output of the get command was exactly the value of the property with no extra formatting sugar. So instead of
I would just do
More readable and less error prone - what if OpenWhisk decides to change the formatting of the output adding more words or spaces, my $3 would no longer match the namespace.