Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warn when initializing/overwriting non-empty directory #698

Open
scarf005 opened this issue Dec 1, 2024 · 1 comment
Open

warn when initializing/overwriting non-empty directory #698

scarf005 opened this issue Dec 1, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@scarf005
Copy link
Contributor

scarf005 commented Dec 1, 2024

Enter your suggestions in details:

when running deno run -A https://lume.land/init.ts it will edit

File saved: deno.json
File saved: _config.ts
File saved: .gitignore
File saved: _cms.ts

without checking whether these files exist.
could be problemetic if user(me) accidently initialized it on wrong path, potentially wiping important stuff like .gitignore

@scarf005 scarf005 added the enhancement New feature or request label Dec 1, 2024
@oscarotero
Copy link
Member

The init script is in a different repository
but yeah, probably there should be a confirm before overriding existing files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants