makerst: Print colored output for easier visual grepping

This is automatically enabled on all platforms including
Windows 10 and later, whenever a TTY environment is detected.

In non-TTY environments such as CI, this can be forced using the
`--color` command line argument.
This commit is contained in:
Hugo Locurcio
2022-06-11 00:16:05 +02:00
parent b9375ea7fc
commit d45351f413
3 changed files with 39 additions and 6 deletions

View File

@ -9,4 +9,4 @@ if [[ "$py_ver" != "3" ]]; then
PYTHON+=3
fi
$PYTHON doc/tools/make_rst.py doc/classes modules --dry-run
$PYTHON doc/tools/make_rst.py doc/classes modules --dry-run --color