Created
July 12, 2018 13:04
-
-
Save lagenorhynque/f06849ed9226c2123fb3d6d8cf72bc05 to your computer and use it in GitHub Desktop.
EDN to YAML conversion
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
{:deps | |
{io.forward/yaml {:mvn/version "1.0.9"}}} |
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
(ns edn2yaml | |
(:require [yaml.core :as yaml])) | |
(defn -main [& args] | |
(-> (clojure.edn/read) | |
(yaml/generate-string | |
:dumper-options {:flow-style :block}) | |
println)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment