Sha256: a4c2cdc050c50dff5a504d27e2fc2c3b5d00b7268090951fb918fdefc36524d8
Contents?: true
Size: 569 Bytes
Versions: 4
Compression:
Stored size: 569 Bytes
Contents
#!/usr/bin/env ruby require_relative "../lib/licensee" path = ARGV[0] || Dir.pwd Licensee.package_manager_files = true project = Licensee::Project.new(path) license = project.matched_file if project.license_file puts "License file: #{project.license_file.path}" puts "Attribution: #{project.license_file.attribution}" if project.license_file.attribution end if license puts "License: #{license.match ? license.match.meta['title'] : 'no license'}" puts "Confidence: #{license.confidence}%" puts "Method: #{license.matcher.class}" else puts "Unknown" end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
licensee-5.0.0 | bin/licensee |
licensee-5.0.0b7 | bin/licensee |
licensee-5.0.0b6 | bin/licensee |
licensee-5.0.0b5 | bin/licensee |