salt icon indicating copy to clipboard operation
salt copied to clipboard

No way to force color output in salt command

Open ManuelAmadorAditazz opened this issue 13 years ago • 3 comments

While salt color output works awesome when I have a PTY, it does not work when I run it without a PTY, because of this:

https://github.com/saltstack/salt/blob/develop/salt/utils/init.py#L138

There should be a force option right there, preferably settable via command-line, that allows me to wire my git push post-receive hook into showing me nice colors.

Thanks!

ManuelAmadorAditazz avatar Mar 16 '13 09:03 ManuelAmadorAditazz

I am going to approve this for the future, any suggestions on where the flag might be placed? config file? command line options?

thatch45 avatar Mar 20 '13 22:03 thatch45

Command line if at all posible, and also a "force" string accepted in the config file just in case.

On Wed, Mar 20, 2013 at 3:15 PM, Thomas S Hatch [email protected]:

I am going to approve this for the future, any suggestions on where the flag might be placed? config file? command line options?

— Reply to this email directly or view it on GitHubhttps://github.com/saltstack/salt/issues/4121#issuecomment-15207245 .

ManuelAmadorAditazz avatar Mar 20 '13 22:03 ManuelAmadorAditazz

Thanks @icholy

thatch45 avatar Jun 24 '13 19:06 thatch45