n98-magerun2
n98-magerun2 copied to clipboard
config:get show default config.xml value
Current Implementation
The current config:get doesn't show the default value from the config.xml if it's not in the database.
Suggested Enhancement
Check the default value in case there's no value found via DB. https://github.com/netz98/n98-magerun2/blob/develop/src/N98/Magento/Command/Config/Store/GetCommand.php#L128
This alias function does this:
function m2-config-get () {
bin/mageru2 dev:con "\$di->create(\Magento\Framework\App\Config\ScopeConfigInterface::class)->getValue('$1');exit" | grep '=>'
}