rangle/koast — pull request #78 by e-schultz (2014-10-31 18:28:44+00:00)
Title: [#80028948] feat (config) provide information from where it was loaded f...

...rom

- Add property _configurationInfo to configuration object
- Contains base and application configuration
- Contains versions before and after processed by short stop
- Contains final configuration object

```javascript
_configurationInfo = {
base: {
defaultSource: '',
environmentSource: '',
default: {
preProcessed: {},
postProcessed: {},
},
environment: {
preProcessed: {},
postProcessed: {}
}

},
app: {
defaultSource: '',
environmentSource: '',
default: {
preProcessed: {},
postProcessed: {},
},
environment: {
preProcessed: {},
postProcessed: {}
},
},
result: {}
};
```

- Add config-inspector module
- getConfigurationInformation - parses some extra information from the config
- getConfigurationSummary - uses the results of the above to summarize and format config information

- configInspector.getConfigurationSummary
- defaults:
```javascript
var defaultOptions = {
display: 'post',
include: ['P', 'V', 'SSL'],
format: 'table',
columns: columns
};
```
- options.display = 'pre' or 'post' -- display values before or after processed by shortstop
- options.include - columns to include
- P = path - the location of the config object/value
- V = value - the value being used
- SSL = source + source location
- AD = application default
- AE = application environment
- BD = koast default
- BE = koast environment
- options.format - table or raw, displays a formatted table, or raw JSON data
- Update koast cli to expose some options for config debug
- koast configInfo - displays config with default options
- koast configInfo --format (raw/table) - change format
- koast configInfo --include P,V,SSL - change the included columns
- koast configInfo --mode debug - display the _configInfo object, does not work with other params
- koast configInfo --include P,V,S,SL --format raw | jq 'map(select(.source == "appEnvironment"))'
- if you have 'jq' installed - only display values that came from appEnvironment