mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-04 17:53:10 +00:00
Merge pull request #1248 from mmikulicic/force-color
Added a ANSIBLE_FORCE_COLOR env var, which forces the color output
This commit is contained in:
@@ -36,6 +36,9 @@ else:
|
||||
# curses returns an error (e.g. could not find terminal)
|
||||
ANSIBLE_COLOR=False
|
||||
|
||||
if os.getenv("ANSIBLE_FORCE_COLOR") is not None:
|
||||
ANSIBLE_COLOR=True
|
||||
|
||||
# --- begin "pretty"
|
||||
#
|
||||
# pretty - A miniature library that provides a Python print and stdout
|
||||
|
||||
Reference in New Issue
Block a user