Sha256: 2682c7b145c4325a77f39fc4ffdba9706869bbb0425786a0eaaafc67cd51f3ce
Contents?: true
Size: 395 Bytes
Versions: 8
Compression:
Stored size: 395 Bytes
Contents
#!/usr/bin/env ruby require_relative "../lib/licensee" path = ARGV[0] || Dir.pwd project = Licensee::Project.new(path) license = project.license_file if license puts "License 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
8 entries across 8 versions & 1 rubygems