Added --no-color option
This commit is contained in:
parent
f79084b1db
commit
e8dce40992
|
@ -1,5 +1,6 @@
|
||||||
## 0.7.6 (unreleased)
|
## 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
|
- 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]
|
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
|
- Touch the network configuration file for RedHat so that the `sed` works
|
||||||
|
|
|
@ -5,10 +5,12 @@ require 'vagrant/cli'
|
||||||
env = Vagrant::Environment.new
|
env = Vagrant::Environment.new
|
||||||
|
|
||||||
begin
|
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
|
# Set the UI early in case any errors are raised, and load
|
||||||
# the config immediately, so we gather any new commands from
|
# the config immediately, so we gather any new commands from
|
||||||
# plugins
|
# plugins
|
||||||
env.ui = Vagrant::UI::Shell.new(env, Thor::Base.shell.new)
|
env.ui = Vagrant::UI::Shell.new(env, shell)
|
||||||
env.load!
|
env.load!
|
||||||
|
|
||||||
# Kick start the CLI
|
# Kick start the CLI
|
||||||
|
|
Loading…
Reference in New Issue