-
Notifications
You must be signed in to change notification settings - Fork 80
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
timetrace delete commands: Default to no when asking for confirmation #147
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me: LGTM
} | ||
} | ||
return true | ||
fmt.Fprint(os.Stderr, "Please confirm [y/N]: ") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually your code looks much cleaner. But I am not sure if @dominikbraun intends to remove the for loop.
I think the for loop is not necessary. So for me it looks ok :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can throw it out if you want to.
} | ||
} | ||
return true | ||
fmt.Fprint(os.Stderr, "Please confirm [y/N]: ") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can throw it out if you want to.
Thanks for solving this, @jwnpoh! Your change will be included in the next release. |
Thrilled to have my first merged PR! Thanks for the opportunity! |
This PR is included in timetrace v0.11.1. |
This PR addresses #110.
askForConfirmation()
now defaults to no unless the input is specifically "y" or "Y".askForConfirmation()
todeleteProjectCommand