Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Warning para el comando init #231

@PalumboN

Description

@PalumboN

Hoy si querés crear un proyecto Wollok en una carpeta que ya lo es te tira un error:

➜  example git:(master) ✗ wollok init
✗ There is already a project inside the specified folder

Sin embargo, si dentro de un proyecto dentro de otro proyecto, te deja:

➜  example git:(master) ✗ wollok init -p asd
Creating project in asd...
Creating definition file example.wlk
Creating test file testExample.wtest
Creating package.json
Creating CI files
Creating README
Creating Gitignore
Initializing Git repository
✨ Project succesfully created. Happy coding!

Qué me gustaría?

Estaría bueno tirar un warning y preguntar si es correcto lo que quiere hacer:

➜  example git:(master) ✗ wollok init -p asd
⚠️ Vas a crear un proyecto asd dentro del proyecto example, seguro que deseás continuar? (Y/n) Y

Creating project in asd...
Creating definition file example.wlk
Creating test file testExample.wtest
Creating package.json
Creating CI files
Creating README
Creating Gitignore
Initializing Git repository
✨ Project succesfully created. Happy coding!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions