Added --no-color option

This commit is contained in:
Mitchell Hashimoto 2011-06-09 23:46:23 -04:00
parent f79084b1db
commit e8dce40992
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,6 @@
## 0.7.6 (unreleased)
- Add "--no-color" as an argument and no colorized output will be used. [GH-379]
- Added DEVICE option to the RedHat host only networking entry, which allows
host only networking to work even if the VM has multiple NICs. [GH-382]
- Touch the network configuration file for RedHat so that the `sed` works

View File

@ -5,10 +5,12 @@ require 'vagrant/cli'
env = Vagrant::Environment.new
begin
shell = ARGV.include?("--no-color") ? Thor::Shell::Basic.new : Thor::Base.shell.new
# Set the UI early in case any errors are raised, and load
# the config immediately, so we gather any new commands from
# plugins
env.ui = Vagrant::UI::Shell.new(env, Thor::Base.shell.new)
env.ui = Vagrant::UI::Shell.new(env, shell)
env.load!
# Kick start the CLI