Class: LicenseFinder::CLI::Licenses
Instance Method Summary collapse
Methods included from Subcommand
Methods included from MakesDecisions
Instance Method Details
permalink #add(name, license) ⇒ Object
[View source]
11 12 13 14 15 |
# File 'lib/license_finder/cli/licenses.rb', line 11 def add(name, license) { decisions.license(name, license, txn) } printer.say "The #{name} dependency has been marked as using #{license} license!", :green end |
permalink #remove(dep, lic) ⇒ Object
[View source]
19 20 21 22 23 |
# File 'lib/license_finder/cli/licenses.rb', line 19 def remove(dep, lic) { decisions.unlicense(dep, lic, txn) } printer.say "The dependency #{dep} no longer has a manual license" end |