@evnx/cli 0.3.3 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -14
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -40,6 +40,7 @@ npm install -g @evnx/cli
|
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
### pipx (recommended for Python environments)
|
|
43
|
+
|
|
43
44
|
```bash
|
|
44
45
|
pipx install evnx
|
|
45
46
|
```
|
|
@@ -97,6 +98,21 @@ cargo install evnx --all-features
|
|
|
97
98
|
|
|
98
99
|
### Windows
|
|
99
100
|
|
|
101
|
+
#### Scoop (user-local, no admin required)
|
|
102
|
+
|
|
103
|
+
```powershell
|
|
104
|
+
scoop bucket add evnx https://github.com/urwithajit9/scoop-evnx
|
|
105
|
+
scoop install evnx
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
#### Winget (system-wide)
|
|
109
|
+
|
|
110
|
+
```powershell
|
|
111
|
+
winget install urwithajit9.evnx
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
#### Cargo (Windows)
|
|
115
|
+
|
|
100
116
|
Install [Rust](https://rustup.rs/) first, then:
|
|
101
117
|
|
|
102
118
|
```powershell
|
|
@@ -361,26 +377,34 @@ validate-env:
|
|
|
361
377
|
sast: scan.sarif
|
|
362
378
|
```
|
|
363
379
|
|
|
364
|
-
|
|
380
|
+
## pre-commit / prek Integration
|
|
381
|
+
|
|
382
|
+
Use evnx as automatic git hooks via [pre-commit](https://pre-commit.com)
|
|
383
|
+
or [prek](https://prek.j178.dev) — no manual evnx install needed.
|
|
384
|
+
The binary is compiled and cached automatically on first run.
|
|
385
|
+
|
|
386
|
+
Add to `.pre-commit-config.yaml`:
|
|
365
387
|
|
|
366
388
|
```yaml
|
|
367
|
-
|
|
389
|
+
default_install_hook_types: [pre-commit, pre-push]
|
|
390
|
+
|
|
368
391
|
repos:
|
|
369
|
-
- repo:
|
|
392
|
+
- repo: https://github.com/urwithajit9/evnx
|
|
393
|
+
rev: v0.3.6
|
|
370
394
|
hooks:
|
|
371
|
-
- id: evnx-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
pass_filenames: false
|
|
376
|
-
|
|
377
|
-
- id: evnx-scan
|
|
378
|
-
name: Scan for secrets
|
|
379
|
-
entry: evnx scan --exit-zero
|
|
380
|
-
language: system
|
|
381
|
-
pass_filenames: false
|
|
395
|
+
- id: evnx-scan # blocks commit if secrets found
|
|
396
|
+
- id: evnx-validate # blocks commit if .env misconfigured
|
|
397
|
+
- id: evnx-diff # warns on .env/.env.example drift
|
|
398
|
+
- id: evnx-scan-push # strict scan on push
|
|
382
399
|
```
|
|
383
400
|
|
|
401
|
+
Then install:
|
|
402
|
+
```bash
|
|
403
|
+
pre-commit install # or: prek install
|
|
404
|
+
```
|
|
405
|
+
|
|
406
|
+
That's it. On your next commit, hooks will auto-compile and run.
|
|
407
|
+
|
|
384
408
|
---
|
|
385
409
|
|
|
386
410
|
## Configuration
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evnx/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"description": "CLI tool for managing .env files — validation, secret scanning, format conversion",
|
|
5
5
|
"keywords": ["dotenv", "env", "secrets", "cli", "security", "devtools", "environment"],
|
|
6
6
|
"author": "Ajit Kumar <support@evnx.dev>",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"postinstall": "node install.js"
|
|
21
21
|
},
|
|
22
22
|
"optionalDependencies": {
|
|
23
|
-
"@evnx/evnx-linux-x64": "0.3.
|
|
24
|
-
"@evnx/evnx-linux-arm64": "0.3.
|
|
25
|
-
"@evnx/evnx-darwin-x64": "0.3.
|
|
26
|
-
"@evnx/evnx-darwin-arm64": "0.3.
|
|
27
|
-
"@evnx/evnx-win32-x64": "0.3.
|
|
23
|
+
"@evnx/evnx-linux-x64": "0.3.6",
|
|
24
|
+
"@evnx/evnx-linux-arm64": "0.3.6",
|
|
25
|
+
"@evnx/evnx-darwin-x64": "0.3.6",
|
|
26
|
+
"@evnx/evnx-darwin-arm64": "0.3.6",
|
|
27
|
+
"@evnx/evnx-win32-x64": "0.3.6"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|
|
30
30
|
"node": ">=14"
|