Giter Club home page Giter Club logo

configurator-ng's People

Contributors

basvandijk avatar bos avatar cdsmith avatar flip111 avatar lpsmith avatar mightybyte avatar yihuang avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

configurator-ng's Issues

Using environment variables for integer values

My configuration file contains a field for a web server port. I'd like to read the value from an environment variable, but doing so always treats it as a string.

server-port = "$(FOO)"

Running with FOO exported to 3000 causes this error:

ConfigError {
  configErrorLocation = Key "" "server-port",
  configConversionError = Just [
    ConversionError {
      conversionErrorLoc = "boundedIntegerValue",
      conversionErrorWhy = TypeError,
      conversionErrorVal = Just (String "3000"),
      conversionErrorType = Just Int,
      conversionErrorMsg = Nothing
    }
  ]
}

I tried this too

server-port = $(FOO)

but it reports ParseError "test.conf" "endOfInput".

Is there something I can do in my code to allow both literal integers and those from environment variables?

(Context: PostgREST/postgrest#826)

Configuration formats?

It's not really clear to me which configuration formats this library supports and where the formats are specified. I would like a library to help validate my toml files, is that possible?

Delete this repo and start fresh

This repo already has existing tags corresponding to configurator versions. I was trying to see if you have any outstanding changes in git that you haven't released to hackage, but this prevented me from doing that. This project is different enough that I don't think you need to preserve the git history. Giving attribution in the cabal file and documentation is enough.

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.