automaton-build.os.edn-utils
Adapter to read an edn file.
format-file
(format-file filename)
Format the edn
file Format file is not blocking if the formatter is not setup or if the file does not exist
Returns nil if successfully updated Params: * filename
to format
formatter-setup
(formatter-setup)
read-edn
(read-edn edn-filename)
Read file which name is edn-filename
.
Returns:
filename
raw-content
if file can be read.invalid?
totrue
whatever why.exception
if something wrong happened.edn
if the translation.
str->edn
(str->edn raw-content)
write
(write edn-filename content)
Spit the content
in the edn file called edn-filename
. Params: * edn-filename
Filename * content
What is spitted Return nil if successful else map with :exception