Sha256: 92197c149aa8f363a8f2b260d8f0f1b68f4c5dad05515b7e3d0313d816375e8f
Contents?: true
Size: 681 Bytes
Versions: 1
Compression:
Stored size: 681 Bytes
Contents
module LicenseFinder module CLI class Approvals < Base extend Subcommand include MakesDecisions auditable desc "add DEPENDENCY...", "Approve one or more dependencies by name" def add(name, *other_names) names = modify_each(name, *other_names) do |name| decisions.approve(name, txn) end 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) } say "The dependency #{dep} no longer has a manual approval" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
license_finder-2.0.0.rc2 | lib/license_finder/cli/approvals.rb |