add config
This commit is contained in:
parent
62dbf600fd
commit
b51200f381
1 changed files with 17 additions and 0 deletions
17
src/dda/build/config.clj
Normal file
17
src/dda/build/config.clj
Normal 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))
|
Loading…
Add table
Reference in a new issue