Sha256: c932b94a658d957d083dc0f4081063d72bca1a1b3cd7424c468f1528a86fcdae

Contents?: true

Size: 761 Bytes

Versions: 43

Compression:

Stored size: 761 Bytes

Contents

# frozen_string_literal: true

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

      desc 'list', 'List all the ignored groups'
      def list
        say 'Ignored Groups:', :blue
        say_each(decisions.ignored_groups)
      end

      auditable
      desc 'add GROUP', 'Add a group to be ignored'
      def add(group)
        modifying { decisions.ignore_group(group, txn) }

        say "Added #{group} to the ignored groups"
      end

      auditable
      desc 'remove GROUP', 'Remove a group from the ignored groups'
      def remove(group)
        modifying { decisions.heed_group(group, txn) }

        say "Removed #{group} from the ignored groups"
      end
    end
  end
end

Version data entries

43 entries across 43 versions & 2 rubygems

Version Path
license_finder-6.15.0 lib/license_finder/cli/ignored_groups.rb
gitlab-license_finder-6.14.2.1 lib/license_finder/cli/ignored_groups.rb
license_finder-6.14.2 lib/license_finder/cli/ignored_groups.rb
license_finder-6.14.1 lib/license_finder/cli/ignored_groups.rb
license_finder-6.13.0 lib/license_finder/cli/ignored_groups.rb
license_finder-6.12.2 lib/license_finder/cli/ignored_groups.rb
license_finder-6.12.1 lib/license_finder/cli/ignored_groups.rb
license_finder-6.12.0 lib/license_finder/cli/ignored_groups.rb
license_finder-6.11.0 lib/license_finder/cli/ignored_groups.rb
license_finder-6.10.1 lib/license_finder/cli/ignored_groups.rb
license_finder-6.10.0 lib/license_finder/cli/ignored_groups.rb
license_finder-6.9.0 lib/license_finder/cli/ignored_groups.rb
license_finder-6.8.2 lib/license_finder/cli/ignored_groups.rb
license_finder-6.8.1 lib/license_finder/cli/ignored_groups.rb
license_finder-6.8.0 lib/license_finder/cli/ignored_groups.rb
license_finder-6.7.0 lib/license_finder/cli/ignored_groups.rb
license_finder-6.6.2 lib/license_finder/cli/ignored_groups.rb
license_finder-6.6.1 lib/license_finder/cli/ignored_groups.rb
license_finder-6.6.0 lib/license_finder/cli/ignored_groups.rb
license_finder-6.5.0 lib/license_finder/cli/ignored_groups.rb