OXIDprojects / oxid_modules_config

OXID Module Configuration Im-/Exporter module by OXID Professional Services
GNU General Public License v3.0
3 stars 9 forks source link

make env paramter not optional #29

Closed alfredbez closed 4 years ago

alfredbez commented 5 years ago

If we run the config:import without specifying the --env parameter, development is used as a fallback. We should at least ask for a confirmation (y/n) before proceeding, maybe it's even better to not allow to call the command without this parameter.

user@production-server:~$ php /var/www/shop/current/vendor/bin/oxid config:import
[warning] loading configuration for 'development' environment, should we proceed? [y/n]
n
aborting
user@production-server:~$ php /var/www/shop/current/vendor/bin/oxid config:import
[warning] no environment given, please specify it like so
config:import --env=<NAME-OF-THE-ENVIRONMENT>
aborting