Class: Github::Nippou::Commands

Inherits:
Thor
  • Object
show all
Defined in:
lib/github/nippou/commands.rb

Instance Method Summary collapse

Instance Method Details

#listObject



22
23
24
25
26
27
28
29
30
31
32
# File 'lib/github/nippou/commands.rb', line 22

def list
  nippous.each do |url, detail|
    line = "* [#{detail[:title]} - #{detail[:repo_basename]}](#{url}) by #{detail[:username]}"
    if detail[:merged]
      line << ' **merged!**'
    elsif detail[:state] == 'closed'
      line << ' **closed!**'
    end
    puts line
  end
end