Skip to content

Commit 0c94cce

Browse files
committed
Rename ECA_CONFIGFILE to ECA_CONFIG_FILE
1 parent 3796051 commit 0c94cce

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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

docs/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/eca/config.clj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
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]
@@ -154,7 +154,7 @@
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*))))))

0 commit comments

Comments
 (0)