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

Output formatting with command line flags #80

Closed
kmaasrud opened this issue Mar 28, 2022 · 0 comments · Fixed by #81
Closed

Output formatting with command line flags #80

kmaasrud opened this issue Mar 28, 2022 · 0 comments · Fixed by #81
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@kmaasrud
Copy link
Member

The default JSON output of mdzk is minified, which it should be. However, for debugging, inspection and other use-cases, a --pretty flag would be useful.

Additionally, if the output is a list or raw primitive, a --raw (or similarly named) flag could provide easier integration with shell scripts.

@kmaasrud kmaasrud added the enhancement New feature or request label Mar 28, 2022
@kmaasrud kmaasrud self-assigned this Mar 28, 2022
@kmaasrud kmaasrud pinned this issue Mar 28, 2022
@kmaasrud kmaasrud mentioned this issue Mar 28, 2022
kmaasrud added a commit that referenced this issue Mar 28, 2022
This function formats a serde_json::Value according to the parameters
pretty and raw. This is further explained in #80
@kmaasrud kmaasrud linked a pull request Mar 28, 2022 that will close this issue
@kmaasrud kmaasrud added this to the 1.0.0 milestone Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant