bootstrap-vz/bootstrapvz/base
Filipe Brandenburger 84cf497c66 Support --color option to indicate whether to use colors in the terminal
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>
2014-08-22 11:46:19 -07:00
..
fs Convert param docs into parseable format. 2014-05-04 19:31:53 +02:00
pkg Convert param docs into parseable format. 2014-05-04 19:31:53 +02:00
__init__.py Convert every JSON file to YAML 2014-07-09 23:17:04 +02:00
bootstrapinfo.py Factor release codename fetching out into common.tools 2014-07-09 23:17:05 +02:00
log.py Support --color option to indicate whether to use colors in the terminal 2014-08-22 11:46:19 -07:00
main.py Support --color option to indicate whether to use colors in the terminal 2014-08-22 11:46:19 -07:00
manifest-schema.yml Convert every JSON file to YAML 2014-07-09 23:17:04 +02:00
manifest.py Allow passing data into the manifest. 2014-07-09 23:17:05 +02:00
phase.py Convert param docs into parseable format. 2014-05-04 19:31:53 +02:00
task.py Convert param docs into parseable format. 2014-05-04 19:31:53 +02:00
tasklist.py Refactor tasklist for easier integration by taskoverview 2014-05-10 17:28:31 +02:00