yii-dev-tool icon indicating copy to clipboard operation
yii-dev-tool copied to clipboard

Make dev-tool a global command

Open roxblnfk opened this issue 3 years ago • 3 comments

It will be legendary if yii-dev-tool could work as global command.

For example

We have a Foo project that contains a lot of repositories.

Right now we have some cloned repositories:

- git
  - foo
    - core
    - contracts
    - bar

We are running

cd git/foo
yii-dev init

The dev tool will ask some questions about project and make some config file(s) in the git/foo folder. And now we can use here the tool to clone more project repositories, update the existing and use ither features.

What do you think about the proposal?

roxblnfk avatar Jun 20 '22 15:06 roxblnfk

I'd prefer to install dev-tool as a dev dependency and run vendor/bin/yii-dev init. This approach will force it to work in any project or set of packages, you need just to composer require and to create a config file for the dev-tool. It will also make the dev-tool usable with docker.

viktorprogger avatar Jun 20 '22 18:06 viktorprogger

@viktorprogger i think it possible to use dev-tool in a project that placed in a subfolder of the inited "super project".

roxblnfk avatar Jun 20 '22 19:06 roxblnfk

Yes, and that's bad. It doesn't work with docker volumes. When you try to work with one of the sub-projects (e.g. start a server for the yiisoft/demo), it's fucking annoying to find out all the workarounds you have to do for that.

viktorprogger avatar Jun 20 '22 21:06 viktorprogger