lib/aws_recon/options.rb in aws_recon-0.4.4 vs lib/aws_recon/options.rb in aws_recon-0.4.5
- old
+ new
@@ -18,10 +18,11 @@
:config_file,
:s3,
:output_file,
:output_format,
:threads,
+ :jsonl,
:collect_user_data,
:skip_slow,
:skip_credential_report,
:stream_output,
:verbose,
@@ -53,10 +54,11 @@
false,
false,
false,
false,
false,
+ false,
false
)
opt_parser = OptionParser.new do |opts|
opts.banner = "\n\x1b[32mAWS Recon\x1b[0m - AWS Inventory Collector (#{AwsRecon::VERSION})\n\nUsage: aws_recon [options]"
@@ -112,9 +114,14 @@
end
# threads
opts.on('-t', '--threads [THREADS]', "Specify max threads (default: #{Parser::DEFAULT_THREADS}, max: 128)") do |threads|
args.threads = threads.to_i if (0..Parser::MAX_THREADS).include?(threads.to_i)
+ end
+
+ # output NDJSON/JSONL format
+ opts.on('-l', '--json-lines', 'Output NDJSON/JSONL format (default: false)') do
+ args.jsonl = true
end
# collect EC2 instance user data
opts.on('-u', '--user-data', 'Collect EC2 instance user data (default: false)') do
args.collect_user_data = true