From 16068958053ad40c81ff1059974c1c738703c845 Mon Sep 17 00:00:00 2001 From: Willie Abrams Date: Fri, 13 Sep 2024 10:35:20 -0500 Subject: [PATCH 1/3] note that you can override dotenv-path at runtime Being able to override `-E/--dotenv-path` at runtime is super useful and should be part of documentation. --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e9e75c70a2..6d4ab4578c 100644 --- a/README.md +++ b/README.md @@ -903,7 +903,8 @@ If any of `dotenv-load`, `dotenv-filename`, `dotenv-path`, or `dotenv-required` are set, `just` will try to load environment variables from a file. If `dotenv-path` is set, `just` will look for a file at the given path, which -may be absolute, or relative to the working directory. +may be absolute, or relative to the working directory. Passing `-E different_path` +or `--dotenv-path different_path` overrides `dotenv-path` at runtime. If `dotenv-filename` is set `just` will look for a file at the given path, relative to the working directory and each of its ancestors. From 938078bcb644d27fe325c7f507181c46b86e49b5 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Sat, 14 Sep 2024 14:33:50 +0700 Subject: [PATCH 2/3] Modify --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6d4ab4578c..f0bce7fe7e 100644 --- a/README.md +++ b/README.md @@ -903,8 +903,10 @@ If any of `dotenv-load`, `dotenv-filename`, `dotenv-path`, or `dotenv-required` are set, `just` will try to load environment variables from a file. If `dotenv-path` is set, `just` will look for a file at the given path, which -may be absolute, or relative to the working directory. Passing `-E different_path` -or `--dotenv-path different_path` overrides `dotenv-path` at runtime. +may be absolute, or relative to the working directory. + +The command line option `--dotenv-path`, short form `-E`, can be used to set or +override `dotenv-path` at runtime. If `dotenv-filename` is set `just` will look for a file at the given path, relative to the working directory and each of its ancestors. From b1ba22c421ec40f0ea01c457abca6c22d33ef313 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Sat, 14 Sep 2024 14:34:51 +0700 Subject: [PATCH 3/3] Tweak --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f0bce7fe7e..420bbcb9d5 100644 --- a/README.md +++ b/README.md @@ -905,7 +905,7 @@ are set, `just` will try to load environment variables from a file. If `dotenv-path` is set, `just` will look for a file at the given path, which may be absolute, or relative to the working directory. -The command line option `--dotenv-path`, short form `-E`, can be used to set or +The command-line option `--dotenv-path`, short form `-E`, can be used to set or override `dotenv-path` at runtime. If `dotenv-filename` is set `just` will look for a file at the given path,