Sha256: 54d83811fc6adc4765b5ab062ccb66bf45d6dd3b4e282c935de981b5eaf51b26

Contents?: true

Size: 698 Bytes

Versions: 22

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

22 entries across 22 versions & 1 rubygems

Version Path
license_finder-3.0.4 lib/license_finder/cli/licenses.rb
license_finder-3.0.2 lib/license_finder/cli/licenses.rb
license_finder-3.0.1 lib/license_finder/cli/licenses.rb
license_finder-3.0.0 lib/license_finder/cli/licenses.rb
license_finder-2.1.2 lib/license_finder/cli/licenses.rb
license_finder-2.1.1 lib/license_finder/cli/licenses.rb
license_finder-2.1.0 lib/license_finder/cli/licenses.rb
license_finder-2.1.0.rc9 lib/license_finder/cli/licenses.rb
license_finder-2.1.0.rc8 lib/license_finder/cli/licenses.rb
license_finder-2.1.0.rc7 lib/license_finder/cli/licenses.rb
license_finder-2.1.0.rc6 lib/license_finder/cli/licenses.rb
license_finder-2.1.0.rc5 lib/license_finder/cli/licenses.rb
license_finder-2.1.0.rc4 lib/license_finder/cli/licenses.rb
license_finder-2.1.0.rc3 lib/license_finder/cli/licenses.rb
license_finder-2.1.0.rc2 lib/license_finder/cli/licenses.rb
license_finder-2.1.0.rc1 lib/license_finder/cli/licenses.rb
license_finder-2.0.4 lib/license_finder/cli/licenses.rb
license_finder-2.0.3 lib/license_finder/cli/licenses.rb
license_finder-2.0.2 lib/license_finder/cli/licenses.rb
license_finder-2.0.1 lib/license_finder/cli/licenses.rb