Sha256: 5bfec5921aa2d6802a274662526ee6a617cdd68a33150c5f965c2097b82f796f
Contents?: true
Size: 600 Bytes
Versions: 3
Compression:
Stored size: 600 Bytes
Contents
#!/usr/bin/env ruby require_relative '../lib/licensee' path = ARGV[0] || Dir.pwd options = { detect_packages: true, detect_readme: true } project = Licensee::GitProject.new(path, options) file = project.matched_file if project.license_file puts "License file: #{project.license_file.filename}" if project.license_file.attribution puts "Attribution: #{project.license_file.attribution}" end end if file puts "License: #{file.license ? file.license.meta['title'] : 'no license'}" puts "Confidence: #{file.confidence}%" puts "Method: #{file.matcher.class}" else puts 'Unknown' end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
licensee-8.0.0 | bin/licensee |
licensee-7.0.1 | bin/licensee |
licensee-7.0.0 | bin/licensee |