https://github.com/cjmarkham/env_prune
Find out which ENV variables can be removed from your .env file
https://github.com/cjmarkham/env_prune
env environment-variables ruby
Last synced: over 1 year ago
JSON representation
Find out which ENV variables can be removed from your .env file
- Host: GitHub
- URL: https://github.com/cjmarkham/env_prune
- Owner: cjmarkham
- License: mit
- Created: 2018-07-03T13:44:32.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-03T17:10:16.000Z (almost 8 years ago)
- Last Synced: 2025-02-07T17:29:36.296Z (over 1 year ago)
- Topics: env, environment-variables, ruby
- Language: Ruby
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ENV Prune
Find out which ENV variables can be removed from your .env file
**Warning** The ENV variables listed are just ones that are unused in your code. Some ENV variables could be used by other third party applications such as Rails gems. Always make sure they aren't used by another application before removing.
# Usage
`ruby env_prune.rb`
# Arguments
#### -d Comma seperated list of directories to search
`-d=app,config`
#### -f Comma seperated list of file extensions to search
`-f=rb,html`
#### -e The name of the env file
`-e=.env`