class Travis::CLI::Whatsup

def recent

def recent
  @recent ||= begin
    recent = my_repos ? repos : repos(member: user.login)
    recent.select { |repo| repo.last_build }
  end
end

def run

def run
  say 'nothing to show' if recent.empty?
  recent.each do |repo|
    say [
      color(repo.slug, [:bold, repo.color]),
      color("#{repo.last_build.state}: ##{repo.last_build.number}", repo.color)
    ].join(' ')
  end
end