diff options
| author | mo khan <mo.khan@gmail.com> | 2020-06-22 21:15:44 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-06-22 21:15:44 -0600 |
| commit | 26df4f77be7b5e4b31ae35d5395062e0f7765e60 (patch) | |
| tree | 0b8c09fe72c5b5ea81425ccd9dd72b2c7c33e48f /lib | |
| parent | 1cb18873b502a5e37d4d34d91244695c98670ea6 (diff) | |
Run print in parallellight-async
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/spandx.rb | 1 | ||||
| -rw-r--r-- | lib/spandx/cli/commands/scan.rb | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/spandx.rb b/lib/spandx.rb index 78fbdcb..9bd81f5 100644 --- a/lib/spandx.rb +++ b/lib/spandx.rb @@ -1,5 +1,6 @@ # frozen_string_literal: true +require 'async' require 'addressable/uri' require 'bundler' require 'csv' diff --git a/lib/spandx/cli/commands/scan.rb b/lib/spandx/cli/commands/scan.rb index 22420fc..4807208 100644 --- a/lib/spandx/cli/commands/scan.rb +++ b/lib/spandx/cli/commands/scan.rb @@ -16,7 +16,9 @@ module Spandx def execute(output: $stdout) with_printer(output) do |printer| each_dependency do |dependency| - printer.print_line(Plugin.enhance(dependency), output) + Async do + printer.print_line(Plugin.enhance(dependency), output) + end end end end |
