stacked
stacked copied to clipboard
[feature]: CLI Prevent re-create view when the view is already exist.
Is your feature request related to a problem? Please describe.
I'm using stacked create view
command to generate new pages, sometimes I also want to run stacked generate
, because generate command often use, so I usually just press the up key and then enter.
And! If I forgot that my last command is a create view command, if I rerun the command, it will recreate the view and erase all the code! And app.dart
will have multiple declarations of that view.
This is pretty annoying😢, it will be great if there's a check before creating a view or service.
Describe the solution you would like
Add a check before create a new view or service, display an error if the view exists.
Additional Context
No response