clj compiles

This commit is contained in:
jem 2021-05-21 08:51:45 +02:00
parent 71c08c762c
commit 1c3719c2c7
5 changed files with 7 additions and 6 deletions

View file

@ -1,5 +1,5 @@
(defproject dda/k8s-keycloak "0.1.0-SNAPSHOT" (defproject dda/k8s-keycloak "0.1.0-SNAPSHOT"
:description "common utils for dda config" :description "keycloak k8s-installation package"
:url "https://www.domaindrivenarchitecture.org" :url "https://www.domaindrivenarchitecture.org"
:license {:name "Apache License, Version 2.0" :license {:name "Apache License, Version 2.0"
:url "https://www.apache.org/licenses/LICENSE-2.0.html"} :url "https://www.apache.org/licenses/LICENSE-2.0.html"}

View file

@ -39,8 +39,8 @@
(some #(= "-h" %) options) (some #(= "-h" %) options)
(println usage) (println usage)
:default :default
(let [config-str (slurp (:config args)) (let [config-str (slurp config)
auth-str (slurp (:auth args)) auth-str (slurp auth)
config-edn (edn/read-string config-str) config-edn (edn/read-string config-str)
auth-edn (edn/read-string auth-str) auth-edn (edn/read-string auth-str)
config-valid? (s/valid? core/config? config-edn) config-valid? (s/valid? core/config? config-edn)

View file

@ -4,12 +4,11 @@
[clojure.spec.alpha :as s] [clojure.spec.alpha :as s]
#?(:clj [orchestra.core :refer [defn-spec]] #?(:clj [orchestra.core :refer [defn-spec]]
:cljs [orchestra.core :refer-macros [defn-spec]]) :cljs [orchestra.core :refer-macros [defn-spec]])
[keycloak.core-domain :as cd]
[dda.k8s-keycloak.yaml :as yaml])) [dda.k8s-keycloak.yaml :as yaml]))
(def config? cd/config?) (def config? any?)
(def auth? (s/keys :req-un [::cd/auth])) (def auth? any?)
(defn generate-config [my-config my-auth] (defn generate-config [my-config my-auth]
(-> (->

1
valid-auth.edn Normal file
View file

@ -0,0 +1 @@
{}

1
valid-config.edn Normal file
View file

@ -0,0 +1 @@
{}