You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
1 year ago | |
---|---|---|
src | 1 year ago | |
.editorconfig | 1 year ago | |
.gitignore | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 1 year ago | |
shard.yml | 1 year ago |
README.md
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