consolidation / output-formatters

Apply transformations to structured data to write output in different formats.
Other
192 stars 13 forks source link

Add metadata to preserve raw values in field labels #34

Closed greg-1-anderson closed 6 years ago

greg-1-anderson commented 8 years ago

The table formatter always wants to try to make raw field values look "human readable" by calling ucfirst() on each word in the raw value whenever there is no mapping from raw to display value available. Sometimes, though, it is inappropriate to alter the raw values in this way. There should be metadata available in FormatterOptions to disable this automatic transformation.

greg-1-anderson commented 6 years ago

Note that while we do not have this feature available yet, if a command returns UnstructuredData or UnstructuredListData, then the field names are not converted via ucfirst.

greg-1-anderson commented 6 years ago

I'm going to call UnstructuredData as a "close enough" implementation for this. If anyone wants to submit a PR to make it even better, that would be welcome.