Coder Social home page Coder Social logo

flemay / envvars Goto Github PK

View Code? Open in Web Editor NEW
20.0 3.0 4.0 740 KB

Give your environment variables the love they deserve.

License: MIT License

Go 91.53% Makefile 4.80% Shell 2.37% Dockerfile 0.18% CUE 1.12%
parameters environment-variables 12-fac docker docker-image

envvars's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

envvars's Issues

Print variable description on "envvar ensure" failure

If you're not already familiar with envvars, it's probably not intuitive to go looking in envvars.yml when you get an error about unset variables. The description for the variable will be really useful if you need to set it, so an easy way to surface this information is in the error from envvar ensure.

Envvar 'Allowed Values' Enum?

I don't know if this is trying to solve a problem in the wrong place, but I have reached a conclusion it might be useful to specify a list of allowed values for env vars when using this tool. A validator of sorts:

Example:

envvars:
  - name: ENV
    desc: Application stage (dev, qa, preprod, prod)
    tags:
      - deploy
    optional: true
    example: dev
    values:
        - dev
        - qa
        - preprod
        - prod

I'd be happy to flex my go muscles and contribute this, just want to get some input before I do :)

if example is empty, we still need the equal sign

currently if we don't have an example

envvars:
  - name: AWS_DEFAULT_REGION
    desc: AWS Region to deploy to
    tags:
      - aws

the .env file will be generated like

AWS_DEFAULT_REGION

But i think it should be like

AWS_DEFAULT_REGION=

This can also prevent issue if i use envvars envfile to generate a .env and later invoke docker-compose with it.

i can submit a small pr to get it fixed if you think it makes sense.

non-dockerhub hosting

Given that dockerhub rate limits quite aggressively these days, I'm frequently having to set up private repos to host this image. Any chance we can also get it hosted elsewhere? Public ECR is pretty good.

List of examples

It would be nice to pass a list of examples instead of being limited to one.

envvars:
  - name: ENV
    description: Application environment
    examples:
      - prod
      - dev
    tags:
      - deploy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.