lib/bolt/bolt_option_parser.rb in bolt-3.1.0 vs lib/bolt/bolt_option_parser.rb in bolt-3.3.0

- old
+ new

@@ -11,11 +11,11 @@ authentication: %w[user password password-prompt private-key host-key-check ssl ssl-verify], escalation: %w[run-as sudo-password sudo-password-prompt sudo-executable], run_context: %w[concurrency inventoryfile save-rerun cleanup], global_config_setters: PROJECT_PATHS + %w[modulepath], transports: %w[transport connect-timeout tty native-ssh ssh-command copy-command], - display: %w[format color verbose trace], + display: %w[format color verbose trace stream], global: %w[help version log-level clear-cache] }.freeze ACTION_OPTS = OPTIONS.values.flatten.freeze def get_help_text(subcommand, action = nil) @@ -452,11 +452,11 @@ bolt plan convert <path> [options] DESCRIPTION Convert a YAML plan to a Puppet language plan and print the converted plan to stdout. - Converting a YAML plan may result in a plan that is syntactically + Converting a YAML plan might result in a plan that is syntactically correct but has different behavior. Always verify a converted plan's functionality. Note that the converted plan is not written to a file. EXAMPLES bolt plan convert path/to/plan/myplan.yaml @@ -705,11 +705,11 @@ 'Identifies the targets of command.', 'Enter a comma-separated list of target URIs or group names.', "Or read a target list from an input file '@<file>' or stdin '-'.", 'Example: --targets localhost,target_group,ssh://nix.com:23,winrm://windows.puppet.com', 'URI format is [protocol://]host[:port]', - "SSH is the default protocol; may be #{TRANSPORTS.keys.join(', ')}", + "SSH is the default protocol; can be #{TRANSPORTS.keys.join(', ')}", 'For Windows targets, specify the winrm:// protocol if it has not be configured', 'For SSH, port defaults to `22`', 'For WinRM, port defaults to `5985` or `5986` based on the --[no-]ssl setting') do |targets| @options[:targets] ||= [] @options[:targets] << Bolt::Util.get_arg_input(targets) @@ -885,9 +885,12 @@ define('--[no-]color', 'Whether to show output in color') do |color| @options[:color] = color end define('-v', '--[no-]verbose', 'Display verbose logging') do |value| @options[:verbose] = value + end + define('--stream', 'Stream output from scripts and commands to the console') do |_| + @options[:stream] = true end define('--trace', 'Display error stack traces') do |_| @options[:trace] = true end