lexi-lambda / envy Goto Github PK
View Code? Open in Web Editor NEWAn environment variable manager for Racket applications
Home Page: https://lexi-lambda.github.io/envy/envy.html
An environment variable manager for Racket applications
Home Page: https://lexi-lambda.github.io/envy/envy.html
When debugging issues in complex apps I find it helpful to know exactly what configuration the app is in. Would it be a useful feature to have something like a #:debug
or #:log
flag that printed out messages on app startup about the configuration?
It would be nice to have a custom coertion/parsing function beyond the generic type based ones. Something like:
(define/provide-environment [id #:coerse my-parse])
This would allow types beyond the default ones supported.
(First off, this is really cool and I've wanted something like this for a while)
It would be especially nice if there was a #lang envy
:
#lang envy
aws-access-key-id
aws-secret-access-key
[foo-enabled? #:name "FOO_ENABLED" #:default #f]
Which would be equivalent to:
#lang typed/racket/base
(require envy)
(define/provide-environment
aws-access-key-id
aws-secret-access-key
[foo-enabled? #:name "FOO_ENABLED" #:default #f]
And it would be even nicer if it used syntax that cooperated with sweet expressions:
#lang sweet-exp envy
aws-access-key-id
aws-secret-access-key
foo-enabled? #:name "FOO_ENABLED" #:default #f
I should be able to do this:
(define-environment
[logging-enabled? : Boolean])
It should be possible to have a set of environment variables that are required if another environment variable is #t
, but use default values when it is #f
.
Sometimes I'd like to do something reflectively over all bindings defined in a #lang envy
module, like write them to a file, compute a signature of the current config, or store them in some global mutable data structure. It would be nice if #lang envy
defined a hash table mapping symbols to the parsed env values.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.