diff options
author | Steve Baker <sbaker@redhat.com> | 2016-03-02 09:30:36 +1300 |
---|---|---|
committer | Steve Baker <sbaker@redhat.com> | 2016-05-31 09:15:03 +1200 |
commit | a78733444337c7f2b0b4eb506a2605ea05c149a3 (patch) | |
tree | 2e09fb7d6b292546a96cdee979272f4edabb8a89 /setup.cfg | |
parent | bcbbbc9e2c88065ecb9d77ab53fdb8d5e207ff97 (diff) | |
download | python-heatclient-a78733444337c7f2b0b4eb506a2605ea05c149a3.tar.gz |
A resource list formatter for graphviz dot diagrams
This change registers a "dot" formatter for the stack resource list
command. It generates the text for a graphviz dot diagram which can be
rendered as an image with this example usage:
openstack stack resource list --format dot -n3 my_stack | dot -Tsvg -o my_stack.svg
Nested resources are fully supported by creating nodes for top-level
resources then linking stack resources to a subgraph representing the
nested stack.
Change-Id: I4b899287eaf818137d60cb278db2d86598aa6794
Diffstat (limited to 'setup.cfg')
-rw-r--r-- | setup.cfg | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -85,6 +85,14 @@ heatclient.event.formatter.list = yaml = cliff.formatters.yaml_format:YAMLFormatter json = cliff.formatters.json_format:JSONFormatter +heatclient.resource.formatter.list = + dot = heatclient.common.resource_formatter:ResourceDotFormatter + table = cliff.formatters.table:TableFormatter + csv = cliff.formatters.commaseparated:CSVLister + value = cliff.formatters.value:ValueFormatter + yaml = cliff.formatters.yaml_format:YAMLFormatter + json = cliff.formatters.json_format:JSONFormatter + [global] setup-hooks = pbr.hooks.setup_hook |