Class: Bicho::CLI::Commands::Show

Inherits:
Bicho::CLI::Command show all
Defined in:
lib/bicho/cli/commands/show.rb

Instance Attribute Summary

Attributes inherited from Bicho::CLI::Command

#t

Instance Method Summary collapse

Methods inherited from Bicho::CLI::Command

#initialize, opt, options, #parse_options, #parser

Methods included from Logging

#logger, logger, logger=

Constructor Details

This class inherits a constructor from Bicho::CLI::Command

Instance Method Details

#do(global_opts, opts, args) ⇒ Object



34
35
36
37
38
39
40
# File 'lib/bicho/cli/commands/show.rb', line 34

def do(global_opts, opts, args)
  client = ::Bicho::Client.new(global_opts[:bugzilla])
  client.get_bugs(*args).each do |bug|
    t.say("#{t.color(bug.id.to_s, :headline)} #{bug.summary}")
  end
  return 0
end