Sha256: 3280de770a87f0bcc022476ffad4b35a331352c5be2c075c2270d4deee196ce2

Contents?: true

Size: 730 Bytes

Versions: 14

Compression:

Stored size: 730 Bytes

Contents

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

14 entries across 14 versions & 1 rubygems

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