https://github.com/fhightower/ensync
Highlighting differences between env files (e.g. `.env.example` and `.env`).
https://github.com/fhightower/ensync
Last synced: 12 months ago
JSON representation
Highlighting differences between env files (e.g. `.env.example` and `.env`).
- Host: GitHub
- URL: https://github.com/fhightower/ensync
- Owner: fhightower
- Created: 2024-09-13T14:50:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-16T16:51:23.000Z (over 1 year ago)
- Last Synced: 2025-06-18T09:56:45.856Z (12 months ago)
- Language: Go
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# EnSync
Highlighting differences between env files (e.g. `.env.example` and `.env`).
## Setup
1. Clone the repo
2. Run `go get` in the repo dir
3. Run `go run main.go ` (example: `go run main.go /Users/floyd/work/foo`)
## Usage
There are two use-cases for this tool:
1. Comparing two env files in the current dir
2. Comparing all env file pairs in all subdirs of the current dir
If the script finds both a `.env` and `.env.example` in the current dir, it will compare them and stop.
If there either one of these files is missing from the current dir, it will look for them in all subdirs of the current dir.