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 2019/03/26 04:18:47 UTC
[GitHub] [incubator-openwhisk-cli] neerajmangal opened a new pull request
#430: "wsk property get" should return raw output when provided with
specific property.
neerajmangal opened a new pull request #430: "wsk property get" should return raw output when provided with specific property.
URL: https://github.com/apache/incubator-openwhisk-cli/pull/430
This PR attempts to address issues explained in #407.
With this PR, wsk CLI will provide a raw output when a specific property is provided in "wsk property get" command.
**"wsk property get"**
```
Neerajs-MacBook-Pro:incubator-openwhisk-cli mangal$ ./wsk property get
client cert
Client key
whisk auth 2eafce54-d08e-4128-a109-#####
whisk API host https://wsk-edge#####.com
whisk API version v1
whisk namespace mangal
whisk CLI version not set
whisk API build 2018-01-29T18:32:59Z
whisk API build number latest
Neerajs-MacBook-Pro:incubator-openwhisk-cli mangal$
```
```
wsk property get --namespace
mangal
# There is no need to parsing the output now.
export NAMESPACE=`wsk property get --namespace`
echo $NAMESPACE
mangal
```
```
wsk property get --apihost
https://wsk-edge.#####.com
```
```
wsk property get --auth
2eafce54-d08e-4128-a109-####
```
If Option "--all" is present with other options then --all takes precedence.
```
Neerajs-MacBook-Pro:incubator-openwhisk-cli mangal$ ./wsk property get --namespace --all
client cert
Client key
whisk auth 2eafce54-d08e-4128-a109-######
whisk API host https://wsk-edge.#####.com
whisk API version v1
whisk namespace mangal
whisk CLI version not set
whisk API build 2018-01-29T18:32:59Z
whisk API build number latest
Neerajs-MacBook-Pro:incubator-openwhisk-cli mangal$
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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