When a developer types gazelle delete, the CLI does not check for an actual Gazelle project inside the current directory.
This can lead to an unwanted behaviour: if a developer launches gazelle delete in any directory, it will delete
all of the directory's content.
Expected behaviour
Whenever a developer launches gazelle delete the CLI should search for an actual Gazelle project with the loadProjectConfiguration function, if a project is found the user will be prompt to confirm the intent to delete the project,
otherwise the CLI should exit and say that the project was not found.
Description
When a developer types
gazelle delete
, the CLI does not check for an actual Gazelle project inside the current directory. This can lead to an unwanted behaviour: if a developer launchesgazelle delete
in any directory, it will delete all of the directory's content.Expected behaviour
Whenever a developer launches
gazelle delete
the CLI should search for an actual Gazelle project with theloadProjectConfiguration
function, if a project is found the user will be prompt to confirm the intent to delete the project, otherwise the CLI should exit and say that the project was not found.