From b51200f3813257b8666b2faaf12e8f42065b4439 Mon Sep 17 00:00:00 2001 From: Michael Jerger <michael.jerger@meissa-gmbh.de> Date: Tue, 7 Jan 2025 17:50:31 +0100 Subject: [PATCH] add config --- src/dda/build/config.clj | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/dda/build/config.clj diff --git a/src/dda/build/config.clj b/src/dda/build/config.clj new file mode 100644 index 0000000..b99a507 --- /dev/null +++ b/src/dda/build/config.clj @@ -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))