unjs / giget

✨ Download templates and git repositories with pleasure!
MIT License
446 stars 37 forks source link

Dispose: delete pre-created folders when the template does not exist #119

Closed peterroe closed 8 months ago

peterroe commented 10 months ago

Describe the feature

When trying to giget a template that doesn't exist,

$ giget gh:unjs/empty

the folder ends up being created:

|- unjs-empty

Should we make the behavior of giget and git consistent, Clear the pre-created folder when the template doesn't exist ?

Additional information