mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-12-15 22:40:22 +00:00
Mimic the behavior of the --color=<auto|always|never> found in tools
like `ls' and `grep'. Default to `auto' which checks whether stderr is a
tty to define whether colors are used.
Tested:
- Ran ./boostrap-vz --color=never and --color=always, confirmed
colorization worked as expected.
- Ran ./boostrap-vz --color=auto ${manifest_file} 2>bootstrap.log,
confirmed colors were not added to boostrap.log by default, repeated
the test with --color=always and confirmed escape sequences were
output.
Signed-off-by: Filipe Brandenburger <filbranden@google.com>
|
||
|---|---|---|
| .. | ||
| fs | ||
| pkg | ||
| __init__.py | ||
| bootstrapinfo.py | ||
| log.py | ||
| main.py | ||
| manifest-schema.yml | ||
| manifest.py | ||
| phase.py | ||
| task.py | ||
| tasklist.py | ||