commit 4e1470d93e101d1390b39b93dec569c7c8966b83
Author: Steve Baker <email address hidden>
Date: Mon Aug 17 15:29:29 2015 +1200
Implement a json formatter in cliff
This change replaces the cliff-tablib json formatter with an internal
replacement. It differs from the tablib formatter in the following ways:
- by default outputs with an indent of 2 spaces. The --noindent formatting
argument outputs with no indentation, to save space or to pipe to tools
which can't handle multi-line input.
- emit_one serialises a simple dict where the column name is the key
and the data item is the value (rather than a list of dicts with
'Field' and 'Value' keys)
The cliff release which contains this change will need a corresponding
cliff-tablib release which removes the json formatter from its setup.py
entry_points.
Reviewed: https:/ /review. openstack. org/213869 /git.openstack. org/cgit/ openstack/ cliff/commit/ ?id=4e1470d93e1 01d1390b39b93de c569c7c8966b83
Committed: https:/
Submitter: Jenkins
Branch: master
commit 4e1470d93e101d1 390b39b93dec569 c7c8966b83
Author: Steve Baker <email address hidden>
Date: Mon Aug 17 15:29:29 2015 +1200
Implement a json formatter in cliff
This change replaces the cliff-tablib json formatter with an internal
replacement. It differs from the tablib formatter in the following ways:
- by default outputs with an indent of 2 spaces. The --noindent formatting
argument outputs with no indentation, to save space or to pipe to tools
which can't handle multi-line input.
- emit_one serialises a simple dict where the column name is the key
and the data item is the value (rather than a list of dicts with
'Field' and 'Value' keys)
The cliff release which contains this change will need a corresponding
cliff-tablib release which removes the json formatter from its setup.py
entry_points.
Change-Id: I7f9b1f339d96ea d347a0c9d95ec70 04a78d8c9d5
Related-Bug: #1308744