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

feat: don't prompt for env deletion on tutor config save -i #1151

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

regisb
Copy link
Contributor

@regisb regisb commented Oct 31, 2024

The introduction of the -c/--clean option caused the deletion prompt to be displayed for every call to tutor config save --interactive. This is not the desired behaviour, as decided here: #1086 (comment)

With this change, the prompt is only displayed when running: tutor config save --interactive --clean. The environment is still deleted on tutor config save --clean, but without prompt.

We refactored the code with hooks, which simplifies the signature of the interactive prompt function.

FYI @CodeWithEmad @kdmccormick

The introduction of the `-c/--clean` option caused the deletion prompt
to be displayed for every call to `tutor config save --interactive`.
This is not the desired behaviour, as decided here:
#1086 (comment)

With this change, the prompt is only displayed when running: `tutor
config save --interactive --clean`. The environment is still deleted on
`tutor config save --clean`, but without prompt.

We refactored the code with hooks, which simplifies the signature of the
interactive prompt function.
@regisb regisb merged commit 7042414 into master Nov 1, 2024
2 checks passed
@regisb regisb deleted the regisb/no-delete-env branch November 1, 2024 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

3 participants