include SPDX ID in bin output

This commit is contained in:
Ben Balter 2018-01-24 10:06:44 -05:00
parent c39013111b
commit 1553efdd95
No known key found for this signature in database
GPG Key ID: DBB67C246AD356C4
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ MATCHED_FILE_METHODS = %i[
project = Licensee.project(path, detect_packages: true, detect_readme: true) project = Licensee.project(path, detect_packages: true, detect_readme: true)
if project.license if project.license
puts "License: #{project.license.name}" puts "License: #{project.license.name} (#{project.license.spdx_id})"
elsif project.licenses elsif project.licenses
puts "Licenses: #{project.licenses.map(&:name)}" puts "Licenses: #{project.licenses.map(&:name)}"
else else