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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.