Add a confirmation message before submitting
Add a confirmation message before submitting code via cf submit , since many times what happens is, by using up-arrow to get cf test , instead of that cf submit gets selected, by mistake due to hurry, and this small mistake might lead to a wrong submission, which would lead to falling in rating. So, a confirmation message before cf submit would be helpful to mitigate those mistakes. There could be a flag in cf config to activate this confirmation message feature.
Some alternatives:
- Make a bash/cmd wrapper function to confirm and then submit.
- Bind the
cf commitcommand to some hot key in the editor, so it's less likely to press it by mistake.
- Make a bash/cmd wrapper function to confirm and then submit.
Could you elaborate a bit more on what exactly are you talking about and how to go about it
- Bind the
cf commitcommand to some hot key in the editor, so it's less likely to press it by mistake.
If i am not wrong, by cf commit did you mean cf submit ?
@Raghwendra-Dey,
Could you elaborate a bit more on what exactly are you talking about and how to go about it
@user202729, is trying to say that, you can write a Bash script (if know bash, you can also use other scripting language like Perl, Python etc) which prompt for user interaction then decide whether to execute cf submit command, based on user input.
If i am not wrong, by cf commit did you mean cf submit ?
Here cf commit is an alias for user interaction+cf submit command.
@user202729, but I think, it will be a good idea, if cf submit command has support for this, inherently. I'm new here and don't know Golang. Is possible to implement in project?