Crates.io | denv |
lib.rs | denv |
version | 0.3.0 |
source | src |
created_at | 2017-01-03 19:34:57.066071 |
updated_at | 2021-09-10 15:06:06.179462 |
description | Load environment variables from .env file |
homepage | https://github.com/eagletmt/denv-rust |
repository | https://github.com/eagletmt/denv-rust |
max_upload_size | |
id | 7904 |
size | 12,838 |
Load environment variables from .env file.
Usage: denv [OPTIONS] COMMAND...
Options:
-f, --filename FILENAME
Path to .env file
-h, --help Print help
% cat .env
FOO=bar
% denv printenv FOO
bar
% cat hoge.env
HOGE=fuga
% denv -f printenv HOGE
fuga
denv::load("/path/to/.env").expect("Unable to load .env file");
Original implementation is written by taiki45. https://github.com/taiki45/denv