Sha256: 2bd8e250df19213b59d5e566b1cc25cb23ad3dc7f2459cd0f0066a766dec0f27

Contents?: true

Size: 755 Bytes

Versions: 22

Compression:

Stored size: 755 Bytes

Contents

module LicenseFinder
  module CLI
    class IgnoredDependencies < Base
      extend Subcommand
      include MakesDecisions

      desc "list", "List all the ignored dependencies"
      def list
        say "Ignored Dependencies:", :blue
        say_each(decisions.ignored)
      end

      auditable
      desc "add DEPENDENCY", "Add a dependency to be ignored"
      def add(dep)
        modifying { decisions.ignore(dep, txn) }

        say "Added #{dep} to the ignored dependencies"
      end

      auditable
      desc "remove DEPENDENCY", "Remove a dependency from the ignored dependencies"
      def remove(dep)
        modifying { decisions.heed(dep, txn) }

        say "Removed #{dep} from the ignored dependencies"
      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/ignored_dependencies.rb
license_finder-3.0.2 lib/license_finder/cli/ignored_dependencies.rb
license_finder-3.0.1 lib/license_finder/cli/ignored_dependencies.rb
license_finder-3.0.0 lib/license_finder/cli/ignored_dependencies.rb
license_finder-2.1.2 lib/license_finder/cli/ignored_dependencies.rb
license_finder-2.1.1 lib/license_finder/cli/ignored_dependencies.rb
license_finder-2.1.0 lib/license_finder/cli/ignored_dependencies.rb
license_finder-2.1.0.rc9 lib/license_finder/cli/ignored_dependencies.rb
license_finder-2.1.0.rc8 lib/license_finder/cli/ignored_dependencies.rb
license_finder-2.1.0.rc7 lib/license_finder/cli/ignored_dependencies.rb
license_finder-2.1.0.rc6 lib/license_finder/cli/ignored_dependencies.rb
license_finder-2.1.0.rc5 lib/license_finder/cli/ignored_dependencies.rb
license_finder-2.1.0.rc4 lib/license_finder/cli/ignored_dependencies.rb
license_finder-2.1.0.rc3 lib/license_finder/cli/ignored_dependencies.rb
license_finder-2.1.0.rc2 lib/license_finder/cli/ignored_dependencies.rb
license_finder-2.1.0.rc1 lib/license_finder/cli/ignored_dependencies.rb
license_finder-2.0.4 lib/license_finder/cli/ignored_dependencies.rb
license_finder-2.0.3 lib/license_finder/cli/ignored_dependencies.rb
license_finder-2.0.2 lib/license_finder/cli/ignored_dependencies.rb
license_finder-2.0.1 lib/license_finder/cli/ignored_dependencies.rb