CONFIG Library

You can import this library useful for Configuration Management. See how to Import a Library.

This little library provides a simple way to grab a JSON file in another component and parse it.

You use it like this:

local C = CONFIGmain{name="Global",config="global.json"}

In this case, the component pulls the configuration file from the development repo of the component. If you look at the library you can see there is not much to it:

https://bitbucket.org/interfaceware/config/src/main/CONFIGmain.lua

Happy to discuss the topic of configuration management.

 

Related pages