Class: Waff::Commands::Show
- Defined in:
- lib/waff/commands/show.rb
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary collapse
Methods inherited from Command
Instance Method Details
#call(params) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/waff/commands/show.rb', line 6 def call params issue_number = params.shift || LocalRepository.current_issue_number issue_number || raise('No issue number given as argument or found as current branch') issue = github_repo.get_issue issue_number puts "##{issue.number}\t #{issue.title}\n\n" puts issue.body end |