From de4b80d19dd2d3863a08e7280501ca38b22ef31f Mon Sep 17 00:00:00 2001 From: pauhull Date: Thu, 9 Nov 2023 16:35:53 +0100 Subject: [PATCH] feat: pretty-print JSON output --- internal/cmd/util/util.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/cmd/util/util.go b/internal/cmd/util/util.go index 6c332d88..05d44149 100644 --- a/internal/cmd/util/util.go +++ b/internal/cmd/util/util.go @@ -158,6 +158,7 @@ func DescribeFormat(object interface{}, format string) error { func DescribeJSON(object interface{}) error { enc := json.NewEncoder(os.Stdout) + enc.SetIndent("", " ") return enc.Encode(object) }