Class: WavefrontCommandUsage

Inherits:
WavefrontCommandBase show all
Defined in:
lib/wavefront-cli/commands/usage.rb

Overview

Define the usage command.

Instance Method Summary collapse

Methods inherited from WavefrontCommandBase

#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

#_commandsObject



12
13
14
# File 'lib/wavefront-cli/commands/usage.rb', line 12

def _commands
  ["export csv #{CMN} [-s time] [-e time] "]
end

#_optionsObject



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

#thingObject



8
9
10
# File 'lib/wavefront-cli/commands/usage.rb', line 8

def thing
  'usage report'
end