Skip to content

Conversation

@Sxderp
Copy link

@Sxderp Sxderp commented Apr 12, 2024

The salt CLI commands offer an option to force color output. An option on the Pepper CLI now offers the equivalent feature.

The salt CLI commands offer an option to force color output. An option
on the Pepper CLI now offers the equivalent feature.
@Sxderp
Copy link
Author

Sxderp commented Jul 29, 2024

@barneysowood is there any activity in this repo? Hopefully this simple change can get merged.

Copy link
Collaborator

@barneysowood barneysowood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Sxderp - thanks for submitting this PR. I'm just getting back to working on this again, apologies for the delay.

This is good and with some slight changes, I'd be happy to merge. I would ideally like to see a test, but if you aren't easily able to do that, no problem - I can pick that up later.

Thanks!

'--output-force-color', dest='output_force_color', default=False, action='store_true',
help=textwrap.dedent('''
Force salt outputter to use color when printing.
''')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to have options match the salt command where possible:

    --force-color, --force-colour
                        Force colored output.

Would you be OK with updating that to support --force-color and --force-colour?
If so, probably best to also update the var to force_color

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants