Class: Terjira::BoardCLI

Inherits:
BaseCLI
  • Object
show all
Defined in:
lib/terjira/board_cli.rb

Constant Summary

Constants included from IssuePresenter

IssuePresenter::COMMENTS_SIZE

Constants included from OptionSupportable

OptionSupportable::OPTION_TO_SELECTOR

Instance Method Summary collapse

Methods inherited from BaseCLI

banner, subcommand_prefix

Methods included from SprintPresenter

#colorize_sprint_state, #render_sprint_detail, #render_sprints_summary, #sort_sprint_by_state, #summarise_sprint

Methods included from BoardPresenter

#render_boards_summary

Methods included from ProjectPresenter

#redner_project_detail, #render_components_and_versions, #render_projects_summary

Methods included from IssuePresenter

#comments_template, #issue_detail_template, #render_divided_issues_by_status, #render_issue_detail, #render_issues, #summarise_issue

Methods included from CommonPresenter

#dim_none, #formatted_date, #insert_new_line, #pastel, #render, #screen_width, #username

Methods included from OptionSupportable

included, #resource_store, #suggest_options, #suggest_related_value_options

Instance Method Details

#backlogObject



20
21
22
23
24
25
# File 'lib/terjira/board_cli.rb', line 20

def backlog
  opts = suggest_options(required: [:board])
  board = opts.delete(:board)
  issues = client_class.backlog(board.key_value, opts)
  render_issues(issues)
end

#listObject



13
14
15
16
# File 'lib/terjira/board_cli.rb', line 13

def list
  boards = client_class.all
  render_boards_summary(boards.sort_by { |b| b.id })
end