add config

This commit is contained in:
Michael Jerger 2025-01-07 17:50:31 +01:00
parent 62dbf600fd
commit b51200f381

17
src/dda/build/config.clj Normal file
View file

@ -0,0 +1,17 @@
(ns dda.build.config
"
{:test huhu
:long-name #env LOGNAME
:gopass-pw #gopass [sopra/test.de]
:gopass-field-url #gopass [sopra/test.de url]}
"
(:require [aero.core :as aero]
[dda.build.infrastructure :as i]))
(defmethod aero/reader 'gopass
[{:keys [profile] :as opts} tag value]
(i/execute-output! (into ["gopass" "show" "-y" "-o"] value) {}))
(defn read-config
[file]
(aero/read-config file))