Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to change message text color to RED while writing to git client out put

amrityam rout October 13, 2020

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

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events