Class: LicenseFinder::CLI::Main
- Extended by:
- Rootcommand
- Defined in:
- lib/license_finder/cli/main.rb
Constant Summary collapse
- FORMATS =
{ 'text' => TextReport, 'html' => HtmlReport, 'markdown' => MarkdownReport, 'csv' => CsvReport }
Instance Method Summary collapse
Methods included from Rootcommand
Instance Method Details
#action_items ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/license_finder/cli/main.rb', line 25 def action_items unapproved = license_finder.unapproved if unapproved.empty? say "All dependencies are approved for use", :green else say "Dependencies that need approval:", :red say report_of(unapproved) exit 1 end end |
#report ⇒ Object
40 41 42 43 |
# File 'lib/license_finder/cli/main.rb', line 40 def report logger_config[:quiet] = true say report_of(license_finder.acknowledged) end |
#version ⇒ Object
46 47 48 |
# File 'lib/license_finder/cli/main.rb', line 46 def version puts LicenseFinder::VERSION end |