Skip to content

No way to force color output in salt command #4121

Closed

Description

@ManuelAmadorAditazz

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!

Activity

  1. thatch45 commented on Mar 20, 2013

    @thatch45
    Contributor

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

  2. ManuelAmadorAditazz commented on Mar 20, 2013

    @ManuelAmadorAditazz
    Author

    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 notifications@github.comwrote:

    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//issues/4121#issuecomment-15207245
    .

  3. thatch45 commented on Jun 24, 2013

    @thatch45
    Contributor

    Thanks @icholy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions