🎉 Add version string parsing.

This commit is contained in:
Andrey Antukh 2020-12-04 16:01:33 +01:00 committed by Alonso Torres
parent ac2310f71f
commit 28a2df96ff
6 changed files with 72 additions and 29 deletions

View file

@ -11,6 +11,7 @@
"A configuration management."
(:require
[app.common.spec :as us]
[app.common.version :as v]
[app.util.time :as dt]
[clojure.spec.alpha :as s]
[cuerdas.core :as str]
@ -197,6 +198,9 @@
(def default-deletion-delay
(dt/duration {:hours 48}))
(def version
(delay (v/parse "%version%")))
(defn smtp
[cfg]
{:host (:smtp-host cfg "localhost")