Output cli colours in custom action


I have been using git-up through commandline for a while now and decided to make a custom action for it in Sourcetree. Love the possibility to do this however the output does not give cli colours.

I don't mind that there are no colours, but the output is a bit off this way:

Fetching origin

[1mdevelop [0m[32mup to date[0m

master [32mup to date[0m

while in cli it looks like:

Fetching origin

develop up to date

master up to date

Is there a way to either process this output to make use of available colours in the sourcetree window, or could these standard CLI colours be incorporated into the output?

Even better, I don't know if this is a feature request yet, but git-up is very handy to rebase all remote branches at once, I think it would be ideal as a feature for sourcetree.

Thanks in advance, love the product!

1 answer

1 accepted

1 vote
Answer accepted

I don't think there is a way to enable color support (or even color ignore).

Sounds like you have two good feature requests. Create them at jira.atlassian.comand post links here so others can find them and vote them up.

Thanks for the suggestion of creating issues. I have done so:

- Formatted CLI output support (https://jira.atlassian.com/browse/SRCTREE-2583)

- Rebase all branches at once (https://jira.atlassian.com/browse/SRCTREE-2581)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

1,220 views 4 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you