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