mirror of
https://github.com/inspec/inspec
synced 2024-12-18 00:53:22 +00:00
add color output + make default
This commit is contained in:
parent
68c1e422bf
commit
90f2212ed5
2 changed files with 5 additions and 1 deletions
|
@ -76,6 +76,7 @@ module Inspec
|
||||||
# @return [nil]
|
# @return [nil]
|
||||||
def configure_output
|
def configure_output
|
||||||
RSpec.configuration.add_formatter(@conf['format'] || 'progress')
|
RSpec.configuration.add_formatter(@conf['format'] || 'progress')
|
||||||
|
RSpec.configuration.color = @conf['color']
|
||||||
|
|
||||||
setup_reporting if @conf['report']
|
setup_reporting if @conf['report']
|
||||||
end
|
end
|
||||||
|
|
|
@ -45,7 +45,10 @@ module Inspec
|
||||||
target_options
|
target_options
|
||||||
option :controls, type: :array,
|
option :controls, type: :array,
|
||||||
desc: 'A list of controls to run. Ignore all other tests.'
|
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
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
Loading…
Reference in a new issue