Class: WavefrontCommandSource

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

Overview

Define the source command.

Instance Method Summary collapse

Methods inherited from WavefrontCommandBase

#acl_commands, #commands, #common_options, #docopt, #global_option_text, #global_options, #opt_row, #option_column_width, #options, #postscript, #sdk_class, #sdk_file, #tag_commands, #thing, #things, #word

Instance Method Details

#_commandsObject



12
13
14
15
16
17
18
19
20
# File 'lib/wavefront-cli/commands/source.rb', line 12

def _commands
  ["list #{CMN} [-l] [-O fields] [-o cursor] [-L limit] [-a]",
   "describe #{CMN} <id>",
   "description set  #{CMN} <id> <description>",
   "description clear  #{CMN} <id>",
   "clear  #{CMN} <id>",
   "search #{CMN} [-al] [-o cursor] [-L limit] [-O fields] <condition>...",
   tag_commands]
end

#_optionsObject



22
23
24
25
26
27
28
29
# File 'lib/wavefront-cli/commands/source.rb', line 22

def _options
  [common_options,
   "-l, --long               list #{things} in detail",
   "-o, --cursor=SOURCE      start list given #{thing}",
   '-O, --fields=F1,F2,...   only show given fields',
   "-L, --limit=COUNT        number of #{things} to list",
   "-a, --all                list all #{things}, including cluster"]
end

#descriptionObject



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

def description
  'view and manage source tags and descriptions'
end