Liking cljdoc? Tell your friends :D
Clojure only.

auto-build.os.edn-utils

Read an edn file.

Read an edn file.
raw docstring

read-ednclj

(read-edn printers edn-filename)

Read edn-filename and returns a map with:

  • :filepath as given as a parameter
  • :afilepath file with absolute path
  • :status is :success or :fail
  • :raw-content if file can be read.
  • :exception if something wrong happened.
  • :edn if the text to edn translation is successful.

That functions print on the cli:

  • nothing if successful or if printers are nil
  • an error message and the message of the exception if the file can't be read.
Read `edn-filename` and returns a map with:
* `:filepath` as given as a parameter
* `:afilepath` file with absolute path
* `:status` is `:success` or `:fail`
* `:raw-content` if file can be read.
* `:exception` if something wrong happened.
* `:edn` if the text to edn translation is successful.

That functions print on the cli:
* nothing if successful or if printers are nil
* an error message and the message of the exception if the file can't be read.
sourceraw docstring

write-ednclj

(write-edn edn-filepath printers content)

Spit the content in the edn file called edn-filename.

Params:

  • edn-filepath Filepath
  • content What is spitted Return nil if successful else map with :exception
Spit the `content` in the edn file called `edn-filename`.

Params:
* `edn-filepath` Filepath
* `content` What is spitted
Return nil if successful else map with :exception
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close