yiisoft / config

Configuration management
https://www.yiiframework.com/
BSD 3-Clause "New" or "Revised" License
31 stars 11 forks source link

Rename composer commands with `:` usage #176

Open vjik opened 3 months ago

vjik commented 3 months ago
          > > > Add composer command yii-config-info

What about to use namespace instead? yii-config:info yii:config:info yii:config-info

This is not consistent with other exists commands (yii-config-copy, yii-config-rebuild).

So we can aliases for them and make them deprecated for the further versions

Originally posted by @xepozz in https://github.com/yiisoft/config/issues/175#issuecomment-2041573208

samdark commented 3 months ago
yii:config:info
yii:config:copy
yii:config:rebuild

Sounds good to me.

Or... could be even:

config:info
config:copy
config:rebuild
vjik commented 3 months ago

These commands user can not change, so they should have unique names. So i like one of these:

yii-config:info
yii-config:copy
yii-config:rebuild

or

yii:config:info
yii:config:copy
yii:config:rebuild
samdark commented 3 months ago

@vjik your 2nd variant has a benefit of being able to type y:c:r.