Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

introduce --show-pretty-json into dvc list options #2838

Closed
eggqq007 opened this issue Sep 19, 2021 · 1 comment · Fixed by iterative/dvc#6647
Closed

introduce --show-pretty-json into dvc list options #2838

eggqq007 opened this issue Sep 19, 2021 · 1 comment · Fixed by iterative/dvc#6647
Labels
A: docs Area: user documentation (gatsby-theme-iterative)

Comments

@eggqq007
Copy link

Currently the dvc list can only output json without formatting.
--show-pretty-json can be add to generate json with pretty formatting and color.

Should update it in dvc.org website doc

@dberenbaum
Copy link
Contributor

Hi @eggqq007, thanks for the feature request and PR!

Can you give more context about why you would like this feature?

I ask because if we add --show-pretty-json here, we could end up with similar requests for all commands, and I'm not sure whether the benefit outweighs the cost. This is especially true because the same could seemingly be accomplished in other ways (dvc list --show-json . | jq). Also, the idea is for dvc list . to be human readable and dvc list --show-json . to be machine parseable, so I'm wondering why a human readable JSON output is needed.

@julieg18 julieg18 added the A: docs Area: user documentation (gatsby-theme-iterative) label Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: docs Area: user documentation (gatsby-theme-iterative)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants