Allow generic override of config settings via env vars or java sys props

Description

It's very handy in CI environments to use env vars to configure things and it adds extra time to perform a lot of "box config set" commands. Implement a generic approach to allow any config setting to be overidden via an env var or java system prop.

The var must start with the text "box_config_" and will be followed by the name of the setting.

For nested settings inside of a struct or array you can use underscores to represent dots.

On OS's like Windows which allow for any manner of special characters, you can provide any string which would also be valid for the "config set" command. Ex:

When you provide JSON the "append" flag will be set to true when adding the configuration to what's already in CommandBox.

Override env vars will not be written to the CommandBox.json file and will be lost when box stops. They will also take precedence and overwrite any explicit settings already set.

Fixed

Assignee

Brad Wood

Reporter

Brad Wood

Labels

None

Affects versions

None

Fix versions

Priority

Major