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

Refactor Clean Dir Approach #804

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

AbdurrehmanSubhani
Copy link
Contributor

  • remove "force" flag keeping only forceNoConfirm, better DX to always prompt user if directory not empty instead of throwing exceptions
  • prompt user if the directory is not empty to delete contents

Copy link

vercel bot commented Dec 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 23, 2024 5:49am
upstreet.ai ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 23, 2024 5:49am

@@ -354,7 +354,6 @@ export const create = async (args, opts) => {
const source = args.source;
const features = typeof args.feature === 'string' ? JSON.parse(args.feature) : (args.feature || {});
const yes = args.yes;
const force = !!args.force;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this flag is no longer needed, we can remove the option from the cli.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes overlooked, removed

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

Successfully merging this pull request may close these issues.

2 participants