Class: WavefrontCommandUsage
Overview
Define the usage command.
Instance Method Summary
collapse
#acl_commands, #commands, #common_options, #description, #docopt, #global_option_text, #global_options, #opt_row, #option_column_width, #options, #postscript, #sdk_class, #sdk_file, #tag_commands, #things, #word
Instance Method Details
#_commands ⇒ Object
12
13
14
|
# File 'lib/wavefront-cli/commands/usage.rb', line 12
def _commands
["export csv #{CMN} [-s time] [-e time] "]
end
|
#_options ⇒ Object
16
17
18
19
20
21
|
# File 'lib/wavefront-cli/commands/usage.rb', line 16
def _options
[common_options,
"-s, --start=TIME time at which #{thing} begins " \
'(defaults to 24h ago)',
"-e, --end=TIME time at which #{thing} ends"]
end
|
#thing ⇒ Object
8
9
10
|
# File 'lib/wavefront-cli/commands/usage.rb', line 8
def thing
'usage report'
end
|