viur-framework / viur-cli

Command-line interface for managing and developing ViUR
MIT License
4 stars 6 forks source link

`viur create` is not functional when there is no `project.json` #165

Open phorward opened 1 month ago

phorward commented 1 month ago

I want to setup a new, clean project. This isn't possible with viur-cli.

$ viur create 
ERROR: project.json not found - please check if you are in the right folder.

It is a contradiction that viur-cli requires a project.json, although the new project is to be created first. This makes no sense at all, and a solution must be worked out so that viur-cli can be used sensibly both with and without project.json.

In general, the project.json should only be read when a project-specific command is executed. For example, viur --help or viur --version is not a command that requires a project, just like viur create.

phorward commented 1 month ago

At the same time, please also integrate clean-base.py into viur create so that it can be removed from the base. Likewise, viur-gcloud-setup.sh is still executed in viur create, although it has already been integrated into cli.