989
989
| ` allow-duplicate-variables ` | boolean | ` false ` | Allow variables appearing later in a ` justfile ` to override earlier variables with the same name. |
990
990
| ` dotenv-filename ` | string | - | Load a ` .env ` file with a custom name, if present. |
991
991
| ` dotenv-load ` | boolean | ` false ` | Load a ` .env ` file, if present. |
992
+ | ` dotenv-override ` | boolean | ` false ` | Override existing environment variables with values from the ` .env ` file. |
992
993
| ` dotenv-path ` | string | - | Load a ` .env ` file from a custom path and error if not present. Overrides ` dotenv-filename ` . |
993
994
| ` dotenv-required ` | boolean | ` false ` | Error if a ` .env ` file isn't found. |
994
995
| ` export ` | boolean | ` false ` | Export all variables as environment variables. |
@@ -1060,8 +1061,9 @@ bar
1060
1061
1061
1062
#### Dotenv Settings
1062
1063
1063
- If any of ` dotenv-load ` , ` dotenv-filename ` , ` dotenv-path ` , or ` dotenv-required `
1064
- are set, ` just ` will try to load environment variables from a file.
1064
+ If any of ` dotenv-load ` , ` dotenv-filename ` , ` dotenv-override ` , ` dotenv-path ` ,
1065
+ or ` dotenv-required ` are set, ` just ` will try to load environment variables
1066
+ from a file.
1065
1067
1066
1068
If ` dotenv-path ` is set, ` just ` will look for a file at the given path, which
1067
1069
may be absolute, or relative to the working directory.
@@ -1086,6 +1088,9 @@ It is not an error if an environment file is not found, unless
1086
1088
The loaded variables are environment variables, not ` just ` variables, and so
1087
1089
must be accessed using ` $VARIABLE_NAME ` in recipes and backticks.
1088
1090
1091
+ If ` dotenv-override ` is set, variables from the environment file will override
1092
+ existing environment variables.
1093
+
1089
1094
For example, if your ` .env ` file contains:
1090
1095
1091
1096
``` console
@@ -4452,7 +4457,9 @@ and checking the program's stdout, stderr, and exit code .
4452
4457
4453
4458
5 . Implement the feature.
4454
4459
4455
- 6 . Run ` just ci ` to make sure that all tests, lints, and checks pass.
4460
+ 6 . Run ` just ci ` to make sure that all tests, lints, and checks pass. Requires
4461
+ [ mdBook] ( https://github.com/rust-lang/mdBook ) and
4462
+ [ mdbook-linkcheck] ( https://github.com/Michael-F-Bryan/mdbook-linkcheck ) .
4456
4463
4457
4464
7 . Open a PR with the new code that is editable by maintainers. PRs often
4458
4465
require rebasing and minor tweaks. If the PR is not editable by maintainers,
0 commit comments