Class: WavefrontCommandDashboard
Overview
Define the dashboard command.
Instance Method Summary
collapse
#column_widths, #commands, #common_options, #docopt, #global_options, #opt_row, #options, #postscript, #sdk_class, #sdk_file, #tag_commands, #word
Instance Method Details
#_commands ⇒ Object
10
11
12
13
14
15
16
17
18
19
|
# 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>",
tag_commands]
end
|
#_options ⇒ Object
21
22
23
24
25
26
27
28
|
# File 'lib/wavefront-cli/commands/dashboard.rb', line 21
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
|
#description ⇒ Object
6
7
8
|
# File 'lib/wavefront-cli/commands/dashboard.rb', line 6
def description
'view and manage dashboards'
end
|