Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make dev-tool a global command #210

Open
roxblnfk opened this issue Jun 20, 2022 · 3 comments
Open

Make dev-tool a global command #210

roxblnfk opened this issue Jun 20, 2022 · 3 comments

Comments

@roxblnfk
Copy link
Member

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?

@viktorprogger
Copy link
Contributor

viktorprogger commented Jun 20, 2022

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.

@roxblnfk
Copy link
Member Author

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

@viktorprogger
Copy link
Contributor

viktorprogger commented Jun 20, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants