#!/usr/bin/env ruby require_relative "../lib/licensee" license = Licensee::Project.new(Dir.pwd).license_file 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