Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplified syntax for config scripts #85

Closed
adamralph opened this issue Oct 6, 2013 · 2 comments
Closed

Simplified syntax for config scripts #85

adamralph opened this issue Oct 6, 2013 · 2 comments
Assignees
Labels
Milestone

Comments

@adamralph
Copy link
Contributor

Instead of writing

Configurator.Add("foo", 123);
Configurator.Add("bar", 123);
Configurator.Load("SomeNestedConfiguration.csx");

you can just write

Add("foo", 123);
Add("bar", 123);
Load("SomeNestedConfiguration.csx");

in a .csx file.

Note that, while the old syntax is still supported, the new syntax should always be used from now on. When this syntax is used, ConfigR recognises the script as the source of each value and allows the use of isolated configs (#70) and includes the source in log messages (#94).

@ghost ghost assigned adamralph Oct 26, 2013
adamralph added a commit that referenced this issue Oct 27, 2013
#85 added Load() convenience methods for scripts
@adamralph
Copy link
Contributor Author

Closed by #83, #93 and #95.

@adamralph
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant