Snapshot and diff environment variables across shell sessions and CI pipelines.
go install github.com/yourusername/envlock@latestOr build from source:
git clone https://github.com/yourusername/envlock.git && cd envlock && go build -o envlock .Take a snapshot of the current environment:
envlock snapshot --output env.lockDiff two snapshots:
envlock diff env.lock env-new.lockCompare current environment against a saved snapshot:
envlock diff env.lock --currentExample output:
+ NEW_VAR=hello
- REMOVED_VAR=old_value
~ PATH=/usr/bin → /usr/local/bin
envlock is useful for detecting unexpected environment changes between CI pipeline stages, debugging session drift, or auditing environment configuration over time.
MIT © yourusername