phalcon-devtools icon indicating copy to clipboard operation
phalcon-devtools copied to clipboard

Make a skeleton in the current or existing folder (phalcon project)

Open 4iloveg opened this issue 8 years ago • 1 comments

At this point, the project skeleton is deployed to the folder with the specified name. But if you try to install it into the current or existing folder (even if they are empty), an error message will appear.

сurrent implementation

phalcon project .

Error: Directory D:\OpenServer\domains\phalcon.loc\.\ already exists.

it's desirable

phalcon project . --force

Success: Project '.' was successfully 

An error when deploying to an existing folder may be caused by the intention not to damage the files that are located. But I would like to be able to implement the deployment forcibly.

4iloveg avatar Oct 17 '17 12:10 4iloveg

I believe at the very least the error message should mention the existence of the --force flag. I can see the use case of people creating a blank directory then cd'ing into it very common, and no reason to request the --force flag provided it is indeed a blank directory. If it's not a blank directory, I think showing an error message, which mentions the --force flag is in the best interest of the user so they have a chance to review and verify they know what they are doing. Then if they are sure, they can run the command again with the --force flag.

Ultimater avatar Jul 08 '21 09:07 Ultimater