Skip to content

Latest commit

 

History

History
22 lines (11 loc) · 1.04 KB

config-discovery.md

File metadata and controls

22 lines (11 loc) · 1.04 KB

Configuration discovery

Masson configuration is discovered from files and directories. It supports multiple file formats.

Usage

In the command line, the -c --config argument list one or multiple search path.

Discovery strategy

If the path match a directory, all the files inside are loaded.

The supported file format are YAML (.yml, .yaml), JSON (.json) and JavaScript (.js).

Merging strategy

All files discovered from the search directories are merged to build the final configuration. Parent directories and filenames, split by dots (.), are leveraged to build the path of an action.

A search directory ./conf with a configuration file stored in ./conf/actions/my_services.yml and a child action named my_component is merged in the configuration as actions.my_services.actions.my_components

Simlarly, a search directory ./conf with a configuration file stored in ./conf/actions.my_services.yml and a child action named my_component is merged in the configuration as actions.my_services.actions.my_components.