mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13: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]
|
||||
def configure_output
|
||||
RSpec.configuration.add_formatter(@conf['format'] || 'progress')
|
||||
RSpec.configuration.color = @conf['color']
|
||||
|
||||
setup_reporting if @conf['report']
|
||||
end
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue