File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed
Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 33 [lambdaisland.config :as config]))
44
55(def config
6- (config/create {:prefix " my-app"
7- :prefix-env true }))
6+ (config/create {:prefix " my-app" }))
87
9- (:values config)
10-
11- ()
12-
13- (config/source config :bar/baz )
8+ (config/get config :http/port )
Original file line number Diff line number Diff line change 6262 (-value [this k]
6363 (when-not @cache
6464 (reset! cache (aero/read-config path opts)))
65- (get @cache k))
65+ (c/ get @cache k))
6666 (-source [this k]
6767 (cond
6868 (instance? java.io.File path)
8787
8888(deftype PropertiesProvider [prefix]
8989 ConfigProvider
90- (-value [this k] (System/getProperty (prop -key prefix k)))
90+ (-value [this k] (System/getProperty (property -key prefix k)))
9191 (-source [this k] (str (property-key prefix k) " java system property" ))
9292 (-reload [this]))
9393
You can’t perform that action at this time.
0 commit comments