Adds junit to the inspec help exec

While rebasing the branch where I was working on the cli formatter I
noticed the addition of junit. However, it was not in the help.

Signed-off-by: Franklin Webber <franklin@chef.io>
This commit is contained in:
Franklin Webber 2016-11-30 01:17:44 -06:00
parent 4270ed7f25
commit 9d30628213
3 changed files with 3 additions and 3 deletions

View file

@ -57,7 +57,7 @@ module Inspec
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: cli, progress, documentation, json, json-min' desc: 'Which formatter to use: cli, progress, documentation, json, json-min, junit'
option :color, type: :boolean, default: true, option :color, type: :boolean, default: true,
desc: 'Use colors in output.' desc: 'Use colors in output.'
option :attrs, type: :array, option :attrs, type: :array,

View file

@ -212,7 +212,7 @@ class Inspec::InspecCLI < Inspec::BaseCLI # rubocop:disable Metrics/ClassLength
option :command, aliases: :c, option :command, aliases: :c,
desc: 'A single command string to run instead of launching the shell' desc: 'A single command string to run instead of launching the shell'
option :format, type: :string, default: nil, hide: true, option :format, type: :string, default: nil, hide: true,
desc: 'Which formatter to use: cli, progress, documentation, json, json-min' desc: 'Which formatter to use: cli, progress, documentation, json, json-min, junit'
def shell_func def shell_func
diagnose diagnose
o = opts.dup o = opts.dup

View file

@ -23,7 +23,7 @@ Options:
l, [--log-level=LOG_LEVEL] # Set the log level: info (default), debug, warn, error l, [--log-level=LOG_LEVEL] # Set the log level: info (default), debug, warn, error
[--profiles-path=PROFILES_PATH] # Folder which contains referenced profiles. [--profiles-path=PROFILES_PATH] # Folder which contains referenced profiles.
[--controls=one two three] # A list of controls to run. Ignore all other tests. [--controls=one two three] # A list of controls to run. Ignore all other tests.
[--format=FORMAT] # Which formatter to use: cli, progress, documentation, json, json-min [--format=FORMAT] # Which formatter to use: cli, progress, documentation, json, json-min, junit
[--color], [--no-color] # Use colors in output. [--color], [--no-color] # Use colors in output.
# Default: true # Default: true
[--attrs=one two three] # Load attributes file (experimental) [--attrs=one two three] # Load attributes file (experimental)