Hi Folks!!
I am trying to print a custom message with red color in command line during push operation using Pre-repository hook.
Unfortunately it is still coming in white text color. I am adding code snippet below.
request.getScmHookDetails().ifPresent(scmDetails -> {
scmDetails.out().println("This meesage should show in RED colour, how to acheive this?");
scmDetails.err().println("tried with err.println, still test colour is not red");
});
Any help would be much appreciated!!
Regards,
Amrityam Rout