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

Prompt confirmation before files are written #53

Open
marksmccann opened this issue Dec 12, 2020 · 1 comment
Open

Prompt confirmation before files are written #53

marksmccann opened this issue Dec 12, 2020 · 1 comment

Comments

@marksmccann
Copy link

Just an idea, but one potential feature that could be really handy is a confirmation step that optionally occurs before the files are written; similar to how npm init does it:

Screen Shot 2020-12-12 at 9 18 03 AM

This would give consumers the ability to see what files are going to be generated, and the ability to bail out if they entered something incorrectly OR might accidentally overwrite something they don't intend to. It will add a little transparency to each option and what it does, which can be very reassuring.

This could easily be an opt-in or opt-out feature by adding it to the API:

{
    option: 'Create Redux Store',
    defaultCase: '(pascalCase)',
    confirmFiles: true, // <-- opt-in
},

Are you open to contributions? I am interested in taking a stab at adding this feature, if you agree it is a feature worth pursuing. Thanks!

@codeBelt
Copy link
Owner

sure, go ahead and submit a pr

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

No branches or pull requests

2 participants