Class: Tlog::Command::Stop

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

Instance Attribute Summary

Attributes inherited from Tlog::Command

#date_time_format, #seconds_format, #storage

Instance Method Summary collapse

Instance Method Details

#descriptionObject



7
8
9
# File 'lib/tlog/command/stop.rb', line 7

def description
  "ends a task for a time log"
end

#execute(input, output) ⇒ Object



11
12
13
# File 'lib/tlog/command/stop.rb', line 11

def execute(input, output)
  stop
end

#nameObject



3
4
5
# File 'lib/tlog/command/stop.rb', line 3

def name 
  "stop"
end

#options(parser, options) ⇒ Object



15
16
17
# File 'lib/tlog/command/stop.rb', line 15

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