Provide TSV (tab separated values) output formatter - #88
Merged
Johan Stenberg (ex-msft) (johanste) merged 6 commits intoMar 30, 2016
Merged
Johan Stenberg (ex-msft) (johanste) merged 6 commits into
Johan Stenberg (ex-msft) (johanste) merged 6 commits into
Conversation
--output tsv It will only print the "top level" simple objects of a given result to avoid issues with variable number of columns/row and/or packing complex types into a single column which would require further parsing to make sense of the data. One can (for now) use --query to project any properties that one wants to expose.
…"None" whereas dictionary types are completely ignored. All of this can lead to mis-matched columns (unless the caller explicitly splits on \t where they would get empty string values). Addressed by printing '{object}' for dict type values.
… in the JMESPath expression for the --query parameter. Especially annoying when using the tsv output formatter....
… key name if the dict passed in is not an ordered dict.
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
To use, specify --output tsv on the command line.
Behavior:
Rationale for implementation per above:
Combined with --query to get properties of nested children.