add color output + make default

This commit is contained in:
Dominik Richter 2016-03-07 22:21:31 +01:00
parent 68c1e422bf
commit 90f2212ed5
2 changed files with 5 additions and 1 deletions

View file

@ -76,6 +76,7 @@ module Inspec
# @return [nil]
def configure_output
RSpec.configuration.add_formatter(@conf['format'] || 'progress')
RSpec.configuration.color = @conf['color']
setup_reporting if @conf['report']
end

View file

@ -45,7 +45,10 @@ module Inspec
target_options
option :controls, type: :array,
desc: 'A list of controls to run. Ignore all other tests.'
option :format, type: :string
option :format, type: :string,
desc: 'Which formatter to use: progress, documentation, json'
option :color, type: :boolean, default: true,
desc: 'Use colors in output.'
end
private