Method: Herodot::Application#show_command

Defined in:
lib/herodot.rb

#show_command(config) ⇒ Object



61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/herodot.rb', line 61

def show_command(config)
  command :show do |c|
    c.syntax = 'herodot show [<time range>]'
    c.summary = 'Shows worklogs'
    c.description = SHOW_DESCRIPTION
    c.option '--format FORMAT', String, 'Uses specific output format (Supported: json)'
    show_command_examples(c)
    c.action do |args, options|
      Commands.show(args, config, options)
    end
  end
end