cf-tool icon indicating copy to clipboard operation
cf-tool copied to clipboard

Add a confirmation message before submitting

Open Raghwendra-Dey opened this issue 5 years ago • 3 comments

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.

Raghwendra-Dey avatar Apr 17 '20 05:04 Raghwendra-Dey

Some alternatives:

  • Make a bash/cmd wrapper function to confirm and then submit.
  • Bind the cf commit command to some hot key in the editor, so it's less likely to press it by mistake.

user202729 avatar Apr 17 '20 08:04 user202729

  • 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 commit command 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 avatar Apr 17 '20 08:04 Raghwendra-Dey

@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?

etanot avatar May 18 '20 02:05 etanot