From 16c0d2eaa00d446ec9cbe53c566ee220f545c2b8 Mon Sep 17 00:00:00 2001 From: Jude Payne Date: Sat, 1 Jun 2024 20:03:11 +0100 Subject: [PATCH] fix json parse --- CHANGELOG.md | 3 +++ cmd/dictim.clj | 7 +++---- resources/VERSION | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c020cc9..4b2ed7a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ + # 0.8.2 + - fix to json parse + # 0.8.1 - Better prettified json from parse in cmd line tool diff --git a/cmd/dictim.clj b/cmd/dictim.clj index 40b1178..efec34b 100644 --- a/cmd/dictim.clj +++ b/cmd/dictim.clj @@ -52,9 +52,8 @@ :alias :p} :k {:coerce :boolean :desc "Convert keys to keywords when parsing d2 to dictim syntax edn"} - :json {:coerce :boolean - :alias :j - :desc "Converts the output of parse to dictim syntax json"} + :j {:coerce :boolean + :desc "Converts the output of parse to dictim syntax json"} :b {:coerce :boolean :desc "Additional to -j: prettifies the json output of parse"} :watch {:desc watch-help @@ -218,7 +217,7 @@ dict (if (:k opts) (p/dictim d2 :key-fn keyword) (p/dictim d2))] - (if (:json opts) + (if (:j opts) (println (json/to-json dict {:pretty (:b opts)})) (clojure.pprint/pprint dict)))) diff --git a/resources/VERSION b/resources/VERSION index 6f4eebd..100435b 100644 --- a/resources/VERSION +++ b/resources/VERSION @@ -1 +1 @@ -0.8.1 +0.8.2