Sha256: a3e25255b687dd7f8dd58c333a33cf5d331ab54241de3562f5e17a0d997c31f8

Contents?: true

Size: 433 Bytes

Versions: 4

Compression:

Stored size: 433 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 license
  puts "Matched file: #{license.path}"
  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.0b4 bin/licensee
licensee-5.0.0b3 bin/licensee
licensee-5.0.0b2 bin/licensee
licensee-5.0.0b1 bin/licensee