Sha256: 0468326cdd898507251d6b53b06b2d8d8c9d453e449d47c6128672145b268dc8

Contents?: true

Size: 698 Bytes

Versions: 14

Compression:

Stored size: 698 Bytes

Contents

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) }

        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) }

        say "The dependency #{dep} no longer has a manual license"
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
license_finder-5.4.1 lib/license_finder/cli/licenses.rb
license_finder-5.4.0 lib/license_finder/cli/licenses.rb
license_finder-5.3.0 lib/license_finder/cli/licenses.rb
license_finder-5.2.3 lib/license_finder/cli/licenses.rb
license_finder-5.2.1 lib/license_finder/cli/licenses.rb
license_finder-5.2.0 lib/license_finder/cli/licenses.rb
license_finder-5.1.1 lib/license_finder/cli/licenses.rb
license_finder-5.1.0 lib/license_finder/cli/licenses.rb
license_finder-5.0.3 lib/license_finder/cli/licenses.rb
license_finder-5.0.2 lib/license_finder/cli/licenses.rb
license_finder-5.0.0 lib/license_finder/cli/licenses.rb
license_finder-4.0.2 lib/license_finder/cli/licenses.rb
license_finder-4.0.1 lib/license_finder/cli/licenses.rb
license_finder-3.1.1 lib/license_finder/cli/licenses.rb