Sha256: 2c7d73538b2f238fad47633c7dd0d13480c1ff7cd0b7358ae0f546ff3d78dd77
Contents?: true
Size: 810 Bytes
Versions: 3
Compression:
Stored size: 810 Bytes
Contents
# frozen_string_literal: true module LicenseFinder module CLI class IgnoredDependencies < Base extend Subcommand include MakesDecisions desc 'list', 'List all the ignored dependencies' def list printer.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) } printer.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) } printer.say "Removed #{dep} from the ignored dependencies" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems