Class: Rubyists::Linear::CLI::Issue::Take
- Inherits:
-
Object
- Object
- Rubyists::Linear::CLI::Issue::Take
- Includes:
- CommonOptions, SemanticLogger::Loggable
- Defined in:
- lib/linear/commands/issue/take.rb
Overview
The Take class is a Dry::CLI::Command that assigns an issue to yourself
Instance Method Summary collapse
Methods included from CommonOptions
Instance Method Details
#call(issue_ids:, **options) ⇒ Object
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/linear/commands/issue/take.rb', line 20 def call(issue_ids:, **) me = Rubyists::Linear::User.me updates = issue_ids.map do |issue_id| gimme_da_issue! issue_id, me # gimme_da_issue! is defined in Rubyists::Linear::CLI::Issue rescue NotFoundError => e logger.warn e. next end.compact display updates, end |