Add --color to force color output [GH-2027]

This commit is contained in:
Mitchell Hashimoto 2013-08-09 11:40:08 -07:00
parent 602a5ce0b4
commit 7c9219fc18
2 changed files with 8 additions and 1 deletions

View File

@ -8,12 +8,13 @@ FEATURES:
IMPROVEMENTS:
- Ansible `inventory_path` can be a directory now. [GH-2035]
- core: add `--color` to any Vagrant command to FORCE color output. [GH-2027]
- commands/plugin/install: Post install message of a plugin will be
shown if available. [GH-1986]
- commands/status: cosmetic improvement to better align names and
statuses [GH-2016]
- guests/suse: Supports private/public networks. [GH-1689]
- plugins/ansible: Ansible `inventory_path` can be a directory now. [GH-2035]
BUG FIXES:

View File

@ -40,6 +40,12 @@ elsif !$stdout.tty? && !Vagrant::Util::Platform.cygwin?
opts[:ui_class] = Vagrant::UI::Basic
end
# Also allow users to force colors.
if ARGV.include?("--color")
ARGV.delete("--color")
opts[:ui_class] = Vagrant::UI::Colored
end
# Default to colored output
opts[:ui_class] ||= Vagrant::UI::Colored