Sha256: 3e89dd48b45b2e17fcb6a5c859e4c276126ea77099f29d7cc8aa17d791393022
Contents?: true
Size: 723 Bytes
Versions: 3
Compression:
Stored size: 723 Bytes
Contents
# frozen_string_literal: true module LicenseFinder module CLI class Approvals < Base extend Subcommand include MakesDecisions auditable approvable desc 'add DEPENDENCY...', 'Approve one or more dependencies by name' def add(*names) assert_some names modifying { names.each { |name| decisions.approve(name, txn) } } printer.say "The #{names.join(', ')} dependency has been approved!", :green end auditable desc 'remove DEPENDENCY', 'Unapprove a dependency' def remove(dep) modifying { decisions.unapprove(dep, txn) } printer.say "The dependency #{dep} no longer has a manual approval" end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
license_finder-7.1.0 | lib/license_finder/cli/approvals.rb |
license_finder-7.0.1 | lib/license_finder/cli/approvals.rb |
license_finder-7.0.0 | lib/license_finder/cli/approvals.rb |