Sha256: 2bfa595cd55aaa04baee407bc89721f14fd195412e033357c3af3af3ecb44463
Contents?: true
Size: 891 Bytes
Versions: 4
Compression:
Stored size: 891 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require 'dotenv/load' require 'thor' require 'json' require_relative '../lib/licensee' class LicenseeCLI < Thor package_name 'Licensee' class_option :remote, type: :boolean, desc: 'Assume PATH is a GitHub owner/repo path' default_task :detect private def path @path ||= if !options[:remote] || args.first =~ %r{^https://} args.first || Dir.pwd else "https://github.com/#{args.first}" end end def project @project ||= Licensee.project(path, detect_packages: options[:packages], detect_readme: options[:readme]) end def remote? path =~ %r{^https://} end end commands_dir = File.expand_path '../lib/licensee/commands/', __dir__ Dir["#{commands_dir}/*.rb"].sort.each { |c| require(c) } LicenseeCLI.start(ARGV)
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
licensee-9.15.3 | bin/licensee |
licensee-9.15.2 | bin/licensee |
licensee-9.15.1 | bin/licensee |
licensee-9.15.0 | bin/licensee |