Class: Rubyists::Linear::CLI::Team::List

Inherits:
Object
  • Object
show all
Includes:
Caller, CommonOptions, SemanticLogger::Loggable
Defined in:
lib/linear/commands/team/list.rb

Overview

The List class is a Dry::CLI::Command that lists issues

Instance Method Summary collapse

Methods included from CommonOptions

#display, included

Methods included from Caller

prepended

Instance Method Details

#call(**options) ⇒ Object



20
21
22
23
# File 'lib/linear/commands/team/list.rb', line 20

def call(**options)
  logger.debug 'Listing teams'
  display teams_for(options), options
end

#teams_for(options) ⇒ Object



25
26
27
28
29
# File 'lib/linear/commands/team/list.rb', line 25

def teams_for(options)
  return Rubyists::Linear::Team.mine if options[:mine]

  Rubyists::Linear::Team.all
end