Class: Bicho::CLI::Commands::Show
- Inherits:
-
Bicho::CLI::Command
- Object
- Bicho::CLI::Command
- Bicho::CLI::Commands::Show
- Defined in:
- lib/bicho/cli/commands/show.rb
Instance Attribute Summary
Attributes inherited from Bicho::CLI::Command
Instance Method Summary (collapse)
Methods inherited from Bicho::CLI::Command
#initialize, opt, options, #parse_options, #parser
Methods included from Logging
Constructor Details
This class inherits a constructor from Bicho::CLI::Command
Instance Method Details
- (Object) do(global_opts, opts, args)
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 |