Class: Rubyists::Linear::CLI::Issue::List
- Inherits:
-
Object
- Object
- Rubyists::Linear::CLI::Issue::List
- Includes:
- CommonOptions, SemanticLogger::Loggable
- Defined in:
- lib/linear/commands/issue/list.rb
Overview
The List class is a Dry::CLI::Command that lists issues
Instance Method Summary collapse
Methods included from CommonOptions
Instance Method Details
#call(ids:, **options) ⇒ Object
33 34 35 36 37 38 |
# File 'lib/linear/commands/issue/list.rb', line 33 def call(ids:, **) logger.debug 'Listing issues' return display(issues_for(), ) if ids.empty? display issues_for(.merge(ids:)), end |
#filters_for(options) ⇒ Object
40 41 42 43 44 45 46 |
# File 'lib/linear/commands/issue/list.rb', line 40 def filters_for() filter = {} filter[:assignee] = { isMe: { eq: true } } if [:mine] filter[:assignee] = { null: true } if [:unassigned] filter[:team] = { key: { eq: [:team] } } if [:team] filter end |