yrashk / exconfig Goto Github PK
View Code? Open in Web Editor NEWConfiguration library for Elixir
Configuration library for Elixir
➜ exconfig git:(master) ✗ mix test
** (SyntaxError) nofile:1: invalid syntax in def :some.(value, server)
src/elixir_def.erl:61: :elixir_def.store_definition/5
test/exconfig_test.exs:3: ExConfig.Object.__before_compile__/1
➜ exconfig git:(master) ✗ iex
Erlang R16B02 (erts-5.10.3) [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]
Interactive Elixir (0.11.3-dev) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)>
♪ spoonbot git:(master) ✗ mix deps.compile
* Compiling genx
Compiled lib/gen.ex
Compiled lib/application.ex
Compiled lib/gen_event.ex
Compiled lib/gen_fsm.ex
Compiled lib/ct.ex
Compiled lib/gen_server.ex
lib/supervisor.ex:146: using // for default arguments is deprecated, please use \\ instead
Compiled lib/supervisor.ex
could not compile dependency genx, mix compile failed. You can recompile this dependency with `mix deps.compile genx` or update it with `mix deps.update genx`
** (Mix) Expected :version to be a SemVer version
When we use exconfig in the following manner:
ERL_LIBS=.:deps elixir -e "config = MyModule.Config.file!(%b{config.exs}); config.sys_config!(%b{sys.config})"
with the following config.exs
:
NonExistentModule.Config.config do
config.some_property 42
end
We get the following error:
** (UndefinedFunctionError) undefined function: :erl_eval.config/0
:erl_eval.config/0
:erl_eval.expr/3
Instead, we should get an informative message that there is no module 'Elixir-NonExistentModule-Config'
.
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.