Sha256: 67bc8b1d22c39d3a91fe13ac295ee96fccddf612cab0015965e3edcf5db6a1b2
Contents?: true
Size: 745 Bytes
Versions: 2
Compression:
Stored size: 745 Bytes
Contents
# frozen_string_literal: true module LicenseFinder module CLI class Licenses < Base extend Subcommand include MakesDecisions auditable desc 'add DEPENDENCY LICENSE', "Set a dependency's licenses, overwriting any license_finder has found" def add(name, license) modifying { decisions.license(name, license, txn) } printer.say "The #{name} dependency has been marked as using #{license} license!", :green end auditable desc 'remove DEPENDENCY LICENSE', 'Remove a manually set license' def remove(dep, lic) modifying { decisions.unlicense(dep, lic, txn) } printer.say "The dependency #{dep} no longer has a manual license" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
license_finder-7.0.1 | lib/license_finder/cli/licenses.rb |
license_finder-7.0.0 | lib/license_finder/cli/licenses.rb |