File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 22
33## Unreleased
44
5- - Add ` ECA_CONFIGFILE ` env var to allow point config file explicitly.
5+ - Add ` ECA_CONFIG_FILE ` env var to allow point config file explicitly.
66
77## 0.71.2
88
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ There are multiples ways to configure ECA:
4747 ```
4848
4949 ```bash
50- ECA_CONFIGFILE ='/home/alex/dev/testconfig.json' eca server
50+ ECA_CONFIG_FILE ='/home/alex/dev/testconfig.json' eca server
5151 ```
5252
5353## Providers / Models
Original file line number Diff line number Diff line change 66 3. local config-file: searching from a local `.eca/config.json` file.
77 4. `initializatonOptions` sent in `initialize` request.
88
9- When a `ECA_CONFIGFILE ` env var set, it takes precedence and we only deep merge:
9+ When a `ECA_CONFIG_FILE ` env var set, it takes precedence and we only deep merge:
1010 1. base: fixed config var `eca.config/initial-config`.
11- 2. env file: searching for a `ECA_CONFIGFILE ` env var which points to a json config file."
11+ 2. env file: searching for a `ECA_CONFIG_FILE ` env var which points to a json config file."
1212 (:require
1313 [camel-snake-kebab.core :as csk]
1414 [cheshire.core :as json]
154154(def ^:private config-from-envvar (memoize config-from-envvar*))
155155
156156(defn ^:private config-from-envfile* []
157- (when-some [path (get-env " ECA_CONFIGFILE " )]
157+ (when-some [path (get-env " ECA_CONFIG_FILE " )]
158158 (let [config-file (io/file path)]
159159 (when (.exists config-file)
160160 (safe-read-json-string (slurp config-file) (var *env-file-config-error*))))))
You can’t perform that action at this time.
0 commit comments