-
-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to pretty-print JSON command output. Add trailing newlines…
… to command output. (#150) This commit adds a the --pretty option to format any JSON output with a 4-space indent using golang's json.MarshalIndent, making certain output easier to read when working manually on the command-line. While updating a few printf calls, I also noticed a few commands that I believe were unintentionally omitting a trailing newline, so that after running those commands the user's command prompt would be at the end of the output of the previous command. In principle this *could* break scripted commands that assume no newline? Hard to imagine... Co-authored-by: danielpaulus <[email protected]>
- Loading branch information
1 parent
4604203
commit 96f7026
Showing
1 changed file
with
23 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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