A safe environment variable requester. Should not be used in any kind of production environment.
src | ||
.editorconfig | ||
.gitignore | ||
LICENSE | ||
README.md | ||
shard.yml |
senf
WARNING: You are better off using https://github.com/repomaa/env_config.cr!
A safe environment variable requester. Should not be used in any kind of production environment.
Installation
-
Add the dependency to your
shard.yml
:dependencies: senf: git: https://git.dergrimm.net/dergrimm/senf.git
-
Run
shards install
Usage
require "senf"
SAFE_ENV = Senf::SafeEnv.new([
"TEST_1",
"TEST_2"
])
SAFE_ENV << "TEST_3"
p! SAFE_ENV["TEST_1"],
SAFE_ENV["TEST_2"],
SAFE_ENV["TEST_3"]
Development
TODO: Write development instructions here
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Dominic Grimm - creator and maintainer