mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-18 19:46:59 +00:00
doc(dotenv-linter): reword some sections
This commit is contained in:
+17
-7
@@ -25,9 +25,12 @@ install:
|
||||
```
|
||||
|
||||
This will also attempt to install the
|
||||
[Microsoft Visual C++ Redistributable](/vcruntime) via `webi vcruntime`. If it
|
||||
fails and you get the error _`vcruntime140.dll` was not found_, you'll need to
|
||||
[install it manually](https://learn.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170).
|
||||
[Microsoft Visual C++ Redistributable](../vcruntime/) via `webi vcruntime`. If
|
||||
it fails and you get the error _`vcruntime140.dll` was not found_, you'll need
|
||||
to [install it manually](msvc-learn).
|
||||
|
||||
[msvc-learn]:
|
||||
https://learn.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170
|
||||
|
||||
## Cheat Sheet
|
||||
|
||||
@@ -63,15 +66,22 @@ Use the `fix` subcommand.
|
||||
dotenv-linter fix
|
||||
```
|
||||
|
||||
Backup files in the format of `.env_0000000000` will be created by default. You
|
||||
can use `--no-backup` to skip this.
|
||||
Backup files in the format of `.env_0000000000` will be created by default. \
|
||||
You can use `--no-backup` to skip this.
|
||||
|
||||
### How to compare two files
|
||||
### How to compare keys between environements
|
||||
|
||||
Use the `compare` subcommand
|
||||
|
||||
```sh
|
||||
dotenv-linter compare .env1 .env2
|
||||
dotenv-linter compare ./my-dev.env ./my-prod.env
|
||||
```
|
||||
|
||||
```text
|
||||
Comparing my-dev.env
|
||||
Comparing my-prod.env
|
||||
my-dev.env is missing keys: FOO_API_TOKEN
|
||||
my-prod.env is missing keys: BAR_ID, BAR_SECRET
|
||||
```
|
||||
|
||||
### How to toggle linter rules
|
||||
|
||||
Reference in New Issue
Block a user