CONFIG Library

You can import this library useful for https://interfaceware.atlassian.net/wiki/spaces/IXB/pages/2684354870. See how to https://interfaceware.atlassian.net/wiki/spaces/IXB/pages/2685108228.

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