intales / gazelle

Lightweight Dart HTTP server framework for modular web development. Build APIs with speed and simplicity.
https://docs.gazelle-dart.dev
BSD 3-Clause "New" or "Revised" License
25 stars 6 forks source link

Delete command deletes directory without checking for an actual Gazelle project #32

Closed filippomenchini closed 2 weeks ago

filippomenchini commented 2 weeks ago

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 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.

raman04-byte commented 2 weeks ago

Can you assign this to me.

filippomenchini commented 2 weeks ago

Sure @raman04-byte!