Class: Tlog::Command::Active

Inherits:
Tlog::Command show all
Defined in:
lib/tlog/command/active.rb

Instance Attribute Summary

Attributes inherited from Tlog::Command

#date_time_format, #seconds_format, #storage

Instance Method Summary collapse

Instance Method Details

#descriptionObject



8
9
10
# File 'lib/tlog/command/active.rb', line 8

def description
  "prints out all active time logs, the time log in-progress if there is one. Or the currently checked-out time log"
end

#execute(input, output) ⇒ Object



12
13
14
# File 'lib/tlog/command/active.rb', line 12

def execute(input, output)
  print_time_entry(output)
end

#nameObject



4
5
6
# File 'lib/tlog/command/active.rb', line 4

def name 
  "active"
end

#options(parser, options) ⇒ Object



16
17
18
# File 'lib/tlog/command/active.rb', line 16

def options(parser, options)
  parser.banner = "usage: tlog active"
end