n98-magerun2 icon indicating copy to clipboard operation
n98-magerun2 copied to clipboard

config:get show default config.xml value

Open rafaelstz opened this issue 2 years ago • 0 comments

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 '=>'
}

Expected Benefits

image

rafaelstz avatar Aug 09 '22 17:08 rafaelstz