GitHub user geomacy opened a pull request:
https://github.com/apache/brooklyn-client/pull/31
Experimental addition of 'catalog show'.
Examples:
br catalog show
br catalog show ( application | entity | location | policy )
ITEM[:VERSION]
apps:
br catalog show app TomcatServer
Id: | TomcatServer:4.1.0-SNAPSHOT
Version: | 4.1.0-SNAPSHOT
Name: | Tomcat Server
...etc.
specific version:
br catalog show app TomcatServer:4.1.0-SNAPSHOT
Id: | TomcatServer:4.1.0-SNAPSHOT
Version: | 4.1.0-SNAPSHOT
Name: | Tomcat Server
...
entities:
br catalog show ent docker-engine | head -3
Id: | docker-engine:2.1.0-SNAPSHOT
Version: | 2.1.0-SNAPSHOT
Name: | Docker Engine
...
policies:
br catalog show pol org.apache.brooklyn.policy.ha.ServiceReplacer
Id: |
org.apache.brooklyn.policy.ha.ServiceReplacer:4.1.0-SNAPSHOT
Version: | 4.1.0-SNAPSHOT
Name: | Service Replacer
Symbolic Name: | org.apache.brooklyn.policy.ha.ServiceReplacer
Description: | HA policy for replacing a failed member of a group
Java Type: |
Experimental: render as JSON. Some work required...
Special case: render the whole JSON with jsonpath value `$`:
br -j '$' catalog show ent docker-engine
{"id":"docker-engine:2.1.0-SNAPSHOT","name":"Docker Engine",...
General case: give a JSON path expression following the syntax of
https://github.com/NodePrime/jsonpath:
br -j '$.config[*].label+' catalog show ent docker-engine
"Docker Package"
"Docker Version"
"Docker Repository URL"
"Docker GPG Key URL"
"Docker Additional Options"
"Image Pre-install"
"archive.nameFormat"
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/geomacy/brooklyn-client catshow
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/brooklyn-client/pull/31.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #31
----
commit 3163afa80bf0d5cf4139b4feda1ec2efec61a05f
Author: Geoff Macartney <[email protected]>
Date: 2016-11-01T12:14:05Z
Experimental addition of 'catalog show'.
Examples:
br catalog show
br catalog show ( application | entity | location | policy )
ITEM[:VERSION]
apps:
br catalog show app TomcatServer
Id: | TomcatServer:4.1.0-SNAPSHOT
Version: | 4.1.0-SNAPSHOT
Name: | Tomcat Server
...etc.
specific version:
br catalog show app TomcatServer:4.1.0-SNAPSHOT
Id: | TomcatServer:4.1.0-SNAPSHOT
Version: | 4.1.0-SNAPSHOT
Name: | Tomcat Server
...
entities:
br catalog show ent docker-engine | head -3
Id: | docker-engine:2.1.0-SNAPSHOT
Version: | 2.1.0-SNAPSHOT
Name: | Docker Engine
...
policies:
br catalog show pol org.apache.brooklyn.policy.ha.ServiceReplacer
Id: |
org.apache.brooklyn.policy.ha.ServiceReplacer:4.1.0-SNAPSHOT
Version: | 4.1.0-SNAPSHOT
Name: | Service Replacer
Symbolic Name: | org.apache.brooklyn.policy.ha.ServiceReplacer
Description: | HA policy for replacing a failed member of a group
Java Type: |
Experimental: render as JSON. Some work required...
Special case: render the whole JSON with jsonpath value `$`:
br -j '$' catalog show ent docker-engine
{"id":"docker-engine:2.1.0-SNAPSHOT","name":"Docker Engine",...
General case: give a JSON path expression following the syntax of
https://github.com/NodePrime/jsonpath:
br -j '$.config[*].label+' catalog show ent docker-engine
"Docker Package"
"Docker Version"
"Docker Repository URL"
"Docker GPG Key URL"
"Docker Additional Options"
"Image Pre-install"
"archive.nameFormat"
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---