Coder Social home page Coder Social logo

confidynt's Introduction

Confidynt

Confident 12 factor config in dynamo db CLI tool

Usage

  • Writing a config
❯ cat example.conf
environment=confidynt-example
alpha_first="sandwich
    hotdog"
comes_first=fart
other_thing=barbeque
CLOUDWATCH_THING="ref to $environment"
❯ confidynt --table=deployment write example.conf
example.conf written to deployment
  • Reading a config
❯ confidynt --table=deployment read environment confidynt-example
environment=confidynt-example
comes_first=fart
CLOUDWATCH_THING="ref to $environment"
alpha_first="sandwich
    hotdog"
other_thing=barbeque

Multiline values

Multiline values like alpha_first in the above are supported, but and subsequent lines in the value must be indented.

Comments

Comments in flat config files are allowed and not written to dynamo # within multiline values must be indented e.g.

❯ cat example.conf
environment=confidynt-example
#a comment
other="
  #a thing"
❯ confidynt --table=deployment write example.conf
example.conf written to deployment

Results in

❯ confidynt --table=deployment read environment confidynt-example
environment=confidynt-example
other="
  #a thing"

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.