Class: Tlog::Command::Display
Overview
I will forever love whoever re-writes this class (badly needed)
Instance Attribute Summary
#date_time_format, #seconds_format, #storage
Instance Method Summary
collapse
Instance Method Details
#description ⇒ Object
9
10
11
|
# File 'lib/tlog/command/display.rb', line 9
def description
"displays shit"
end
|
#execute(input, output) ⇒ Object
13
14
15
|
# File 'lib/tlog/command/display.rb', line 13
def execute(input, output)
raise Tlog::Error::CommandInvalid, "Logging invalid" unless display(input.args[0], input.options[:length], output)
end
|
#name ⇒ Object
5
6
7
|
# File 'lib/tlog/command/display.rb', line 5
def name
"display"
end
|
#options(parser, options) ⇒ Object
17
18
19
20
21
22
23
|
# File 'lib/tlog/command/display.rb', line 17
def options(parser, options)
parser.banner = "usage: tlog log <log_name>"
parser.on("-l", "--length <length_threshold>") do |length|
options[:length] = length
end
end
|