Class: WavefrontCommandDashboard

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

Overview

Define the dashboard command.

Instance Method Summary collapse

Methods inherited from WavefrontCommandBase

#commands, #common_options, #docopt, #global_options, #opt_row, #option_column_width, #options, #postscript, #sdk_class, #sdk_file, #tag_commands, #word

Instance Method Details

#_commandsObject



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

def _commands
  ["list #{CMN} [-l] [-f format] [-o offset] [-L limit]",
   "describe #{CMN} [-f format] [-v version] <id>",
   "import #{CMN} [-f format] [-F] <file>",
   "update #{CMN} <key=value> <id>",
   "delete #{CMN} <id>",
   "undelete #{CMN} <id>",
   "history #{CMN} [-b] [-f format] [-o offset] [-L limit] <id>",
   "search #{CMN} [-f format] [-o offset] [-L limit] [-l] <condition>...",
   tag_commands]
end

#_optionsObject



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

def _options
  [common_options,
   '-l, --long               list dashboards in detail',
   '-o, --offset=n           start list from nth dashboard or revision',
   '-L, --limit=COUNT        number of dashboards or revisions to list',
   '-v, --version=INTEGER    version of dashboard',
   '-f, --format=STRING      output format']
end

#descriptionObject



6
7
8
# File 'lib/wavefront-cli/commands/dashboard.rb', line 6

def description
  'view and manage dashboards'
end