Skip to content

Added code for Confirmation Prompt when running qse clear#97

Merged
Ashrockzzz2003 merged 7 commits intoCSE-25:mainfrom
adithya-menon-r:main
Jan 22, 2025
Merged

Added code for Confirmation Prompt when running qse clear#97
Ashrockzzz2003 merged 7 commits intoCSE-25:mainfrom
adithya-menon-r:main

Conversation

@adithya-menon-r
Copy link
Contributor

@adithya-menon-r adithya-menon-r commented Jan 18, 2025

This PR solves #94.

I have used the inquirer package as in #85 to prompt the user for confirmation when running qse clear. If the user confirms, the process continues and the project dir is cleared, else it cancels the operation.

image

@Ashrockzzz2003 Please review it and let me know if I have to make any changes. Thank You!

Copy link
Member

@Ashrockzzz2003 Ashrockzzz2003 left a comment

Choose a reason for hiding this comment

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

I modified the UX of the command in console. Can you please move the logic of clear commad to bin/util/clear.js. We're trying to modularize the codebase. The menu and docker options are already modularized. Let this also be.

@adithya-menon-r
Copy link
Contributor Author

adithya-menon-r commented Jan 19, 2025

The UX changes look good. I'll work on moving clear command logic to util

@adithya-menon-r
Copy link
Contributor Author

adithya-menon-r commented Jan 22, 2025

@Ashrockzzz2003 I have moved the clear command logic to a seperate clear.js file in util.
Please review it and let me know if I have to make any more changes. Thank You!

Copy link
Member

@Ashrockzzz2003 Ashrockzzz2003 left a comment

Choose a reason for hiding this comment

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

LGTM
Thanks for the contribution @adithya-menon-r

@Ashrockzzz2003
Copy link
Member

/bounty 30 @adithya-menon-r

@Ashrockzzz2003 Ashrockzzz2003 merged commit f373ca3 into CSE-25:main Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

Add Prompt to confirm clearing of CWD when running qse clear

2 participants