A safe environment variable requester. Should not be used in any kind of production environment.
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
Dominic Grimm 9b6471a1d0
Update 'README.md'
10 months ago
src Init 11 months ago
.editorconfig Init 11 months ago
.gitignore Init 11 months ago
LICENSE Init 11 months ago
README.md Update 'README.md' 10 months ago
shard.yml Init 11 months 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

  1. Add the dependency to your shard.yml:

    dependencies:
      senf:
        git: https://git.dergrimm.net/dergrimm/senf.git
    
  2. 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

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors